From 4cec9adc02ac90208c999f9fba2389c3efc882a7 Mon Sep 17 00:00:00 2001 From: Adam Porter Date: Fri, 6 Aug 2021 10:28:59 -0500 Subject: [PATCH] Fix: (ement-room-compose-from-minibuffer) Use abort-recursive-edit Thanks to @vizs for reporting. --- ement-room.el | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ement-room.el b/ement-room.el index df9fd37..66af803 100644 --- a/ement-room.el +++ b/ement-room.el @@ -1894,7 +1894,6 @@ use it as the initial message contents." (ement-room-display-name room))))) (pop-to-buffer compose-buffer))) -(declare-function minibuffer-keyboard-quit "delsel") (defun ement-room-compose-from-minibuffer () "Edit the current message in a compose buffer. To be called from a minibuffer opened from @@ -1921,7 +1920,7 @@ To be called from a minibuffer opened from (add-hook 'window-configuration-change-hook show-buffer-fn-symbol))))) (fset compose-fn-symbol compose-fn) (add-hook 'minibuffer-exit-hook compose-fn-symbol) - (minibuffer-keyboard-quit))) + (abort-recursive-edit))) (defun ement-room-compose-send () "Prompt to send the current compose buffer's contents.