From: Tomi Ollila Date: Sat, 28 May 2016 11:06:03 +0000 (+0300) Subject: notmuch-emacs-mua: use message-add-actions X-Git-Url: http://rtime.felk.cvut.cz/gitweb/notmuch.git/commitdiff_plain/e401daecab43ff974474319d1f996c03a076d319 notmuch-emacs-mua: use message-add-actions Use message.el -provided function message-add-actions to set(/add) #'save-buffers-kill-terminal into the message-exit-actions list. --- diff --git a/notmuch-emacs-mua b/notmuch-emacs-mua index 02d7fd74..08be145b 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.