mirror of
https://github.com/vale981/ement.el
synced 2025-03-05 09:21:37 -05:00
Change: (ement-room-compose-org) Improve error message
This commit is contained in:
parent
6e0cb47a0c
commit
0f3693903d
1 changed files with 2 additions and 1 deletions
|
@ -2448,7 +2448,8 @@ Then invalidate EVENT's node to show the image."
|
|||
Configures the buffer appropriately so that saving it will export
|
||||
the Org buffer's contents."
|
||||
(interactive)
|
||||
(cl-assert ement-room-compose-buffer)
|
||||
(unless ement-room-compose-buffer
|
||||
(user-error "This command should be run in a compose buffer. Use `ement-room-compose-message' first"))
|
||||
;; Calling `org-mode' seems to wipe out local variables.
|
||||
(let ((room ement-room)
|
||||
(session ement-session))
|
||||
|
|
Loading…
Add table
Reference in a new issue