You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If ement-room-compose-org is called automatically via ement-room-compose-hook then everything is fine, but it turns out there's a bug if M-x ement-room-compose-org is called interactively.
Recipe:
(setq ement-room-compose-hook nil)
Write a new message
Edit the message in the minibuffer
Type C-c ' to call ement-room-compose-from-minibuffer
Call M-x ement-room-compose-org
Type C-x C-s and submit the edit
Observe the the edit has actually become a new message
If I don't use M-x ement-room-compose-org, or if that is being called via ement-room-compose-hook, then the editing works as expected.
I haven't debugged this, but your comment in chat was:
Probably it's just a matter of the buffer-local variables that contain the metadata about the message being replied to getting killed when the major mode changes. If so, it's basically the same as #130.
There are also dynamic let bindings in ement-room-edit-message and/or ement-room-compose-from-minibuffer which are in scope when ement-room-compose-hook runs, but not subsequently when invoking M-x ement-room-compose-org.
The text was updated successfully, but these errors were encountered:
Thanks. Not sure of the best way to solve this yet. Might end up deferring it for a few versions, because there are other things that seem more important right now.
If
ement-room-compose-org
is called automatically viaement-room-compose-hook
then everything is fine, but it turns out there's a bug ifM-x ement-room-compose-org
is called interactively.Recipe:
(setq ement-room-compose-hook nil)
C-c '
to callement-room-compose-from-minibuffer
M-x ement-room-compose-org
C-x C-s
and submit the editIf I don't use
M-x ement-room-compose-org
, or if that is being called viaement-room-compose-hook
, then the editing works as expected.I haven't debugged this, but your comment in chat was:
There are also dynamic
let
bindings inement-room-edit-message
and/orement-room-compose-from-minibuffer
which are in scope whenement-room-compose-hook
runs, but not subsequently when invokingM-x ement-room-compose-org
.The text was updated successfully, but these errors were encountered: