[PATCH 1/2] notmuch-emacs-mua: use message-add-actions
authorTomi Ollila <tomi.ollila@iki.fi>
Sat, 28 May 2016 11:06:03 +0000 (14:06 +0300)
committerW. Trevor King <wking@tremily.us>
Sat, 20 Aug 2016 23:21:54 +0000 (16:21 -0700)
ea/0dfd2706760a099948bb4d705dedae1fed6818 [new file with mode: 0644]

diff --git a/ea/0dfd2706760a099948bb4d705dedae1fed6818 b/ea/0dfd2706760a099948bb4d705dedae1fed6818
new file mode 100644 (file)
index 0000000..9b23b14
--- /dev/null
@@ -0,0 +1,68 @@
+Return-Path: <too@guru-group.fi>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+ by arlo.cworth.org (Postfix) with ESMTP id 7EA996DE01F7\r
+ for <notmuch@notmuchmail.org>; Sat, 28 May 2016 04:06:27 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at cworth.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0.254\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0.254 tagged_above=-999 required=5 tests=[AWL=0.263, \r
+ HEADER_FROM_DIFFERENT_DOMAINS=0.001, T_RP_MATCHES_RCVD=-0.01]\r
+ autolearn=disabled\r
+Received: from arlo.cworth.org ([127.0.0.1])\r
+ by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)\r
+ with ESMTP id E6DEF-i8ojup for <notmuch@notmuchmail.org>;\r
+ Sat, 28 May 2016 04:06:19 -0700 (PDT)\r
+Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34])\r
+ by arlo.cworth.org (Postfix) with ESMTP id B9E8D6DE01EE\r
+ for <notmuch@notmuchmail.org>; Sat, 28 May 2016 04:06:18 -0700 (PDT)\r
+Received: by guru.guru-group.fi (Postfix, from userid 501)\r
+ id 9F6341000B3; Sat, 28 May 2016 14:06:05 +0300 (EEST)\r
+From: Tomi Ollila <tomi.ollila@iki.fi>\r
+To: notmuch@notmuchmail.org\r
+Cc: tomi.ollila@iki.fi\r
+Subject: [PATCH 1/2] notmuch-emacs-mua: use message-add-actions\r
+Date: Sat, 28 May 2016 14:06:03 +0300\r
+Message-Id: <1464433564-13180-1-git-send-email-tomi.ollila@iki.fi>\r
+X-Mailer: git-send-email 2.8.2\r
+In-Reply-To: <877fev1mcv.fsf@zancas.localnet>\r
+References: <877fev1mcv.fsf@zancas.localnet>\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.20\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+ <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <https://notmuchmail.org/mailman/options/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch/>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <https://notmuchmail.org/mailman/listinfo/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Sat, 28 May 2016 11:06:27 -0000\r
+\r
+Use message.el -provided function message-add-actions to\r
+set(/add) #'save-buffers-kill-terminal into the message-exit-actions\r
+list.\r
+---\r
+ notmuch-emacs-mua | 2 +-\r
+ 1 file changed, 1 insertion(+), 1 deletion(-)\r
+\r
+diff --git a/notmuch-emacs-mua b/notmuch-emacs-mua\r
+index 4404cd7c33b8..1168c6f65a5f 100755\r
+--- a/notmuch-emacs-mua\r
++++ b/notmuch-emacs-mua\r
+@@ -132,7 +132,7 @@ done\r
\r
+ # Kill the terminal/frame if we're creating one.\r
+ if [ -z "$USE_EMACSCLIENT" -o -n "$CREATE_FRAME" -o -n "$NO_WINDOW" ]; then\r
+-    ELISP="${ELISP} (setq message-exit-actions (list #'save-buffers-kill-terminal))"\r
++    ELISP="${ELISP} (message-add-action #'save-buffers-kill-terminal 'exit)"\r
+ fi\r
\r
+ # End progn.\r
+-- \r
+2.8.2\r
+\r