From 656a1fdf7256dc613528af7f7e09ae99e337788f Mon Sep 17 00:00:00 2001 From: Tomi Ollila Date: Sat, 28 May 2016 14:06:03 +0300 Subject: [PATCH] [PATCH 1/2] notmuch-emacs-mua: use message-add-actions --- ea/0dfd2706760a099948bb4d705dedae1fed6818 | 68 +++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 ea/0dfd2706760a099948bb4d705dedae1fed6818 diff --git a/ea/0dfd2706760a099948bb4d705dedae1fed6818 b/ea/0dfd2706760a099948bb4d705dedae1fed6818 new file mode 100644 index 000000000..9b23b14e6 --- /dev/null +++ b/ea/0dfd2706760a099948bb4d705dedae1fed6818 @@ -0,0 +1,68 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by arlo.cworth.org (Postfix) with ESMTP id 7EA996DE01F7 + for ; Sat, 28 May 2016 04:06:27 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at cworth.org +X-Spam-Flag: NO +X-Spam-Score: 0.254 +X-Spam-Level: +X-Spam-Status: No, score=0.254 tagged_above=-999 required=5 tests=[AWL=0.263, + HEADER_FROM_DIFFERENT_DOMAINS=0.001, T_RP_MATCHES_RCVD=-0.01] + autolearn=disabled +Received: from arlo.cworth.org ([127.0.0.1]) + by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id E6DEF-i8ojup for ; + Sat, 28 May 2016 04:06:19 -0700 (PDT) +Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34]) + by arlo.cworth.org (Postfix) with ESMTP id B9E8D6DE01EE + for ; Sat, 28 May 2016 04:06:18 -0700 (PDT) +Received: by guru.guru-group.fi (Postfix, from userid 501) + id 9F6341000B3; Sat, 28 May 2016 14:06:05 +0300 (EEST) +From: Tomi Ollila +To: notmuch@notmuchmail.org +Cc: tomi.ollila@iki.fi +Subject: [PATCH 1/2] notmuch-emacs-mua: use message-add-actions +Date: Sat, 28 May 2016 14:06:03 +0300 +Message-Id: <1464433564-13180-1-git-send-email-tomi.ollila@iki.fi> +X-Mailer: git-send-email 2.8.2 +In-Reply-To: <877fev1mcv.fsf@zancas.localnet> +References: <877fev1mcv.fsf@zancas.localnet> +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.20 +Precedence: list +List-Id: "Use and development of the notmuch mail system." + +List-Unsubscribe: , + +List-Archive: +List-Post: +List-Help: +List-Subscribe: , + +X-List-Received-Date: Sat, 28 May 2016 11:06:27 -0000 + +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 + -- 2.26.2