[PATCH 1/2] notmuch-emacs-mua: use message-add-actions

Tomi Ollila tomi.ollila at iki.fi
Sat May 28 04:06:03 PDT 2016


Use message.el -provided function message-add-actions to
set(/add) #'save-buffers-kill-terminal into the message-exit-actions
list.
---
 notmuch-emacs-mua | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/notmuch-emacs-mua b/notmuch-emacs-mua
index 4404cd7c33b8..1168c6f65a5f 100755
--- a/notmuch-emacs-mua
+++ b/notmuch-emacs-mua
@@ -132,7 +132,7 @@ done
 
 # Kill the terminal/frame if we're creating one.
 if [ -z "$USE_EMACSCLIENT" -o -n "$CREATE_FRAME" -o -n "$NO_WINDOW" ]; then
-    ELISP="${ELISP} (setq message-exit-actions (list #'save-buffers-kill-terminal))"
+    ELISP="${ELISP} (message-add-action #'save-buffers-kill-terminal 'exit)"
 fi
 
 # End progn.
-- 
2.8.2



More information about the notmuch mailing list