Re: notmuch and "mute" -- useful to anyone?
[notmuch-archives.git] / 89 / 7d8d16b51bcdd6ebfa723c04d5e94fac312c25
1 Return-Path: <aaronecay@gmail.com>\r
2 X-Original-To: notmuch@notmuchmail.org\r
3 Delivered-To: notmuch@notmuchmail.org\r
4 Received: from localhost (localhost [127.0.0.1])\r
5         by olra.theworths.org (Postfix) with ESMTP id 423B1429E25\r
6         for <notmuch@notmuchmail.org>; Fri, 16 Dec 2011 02:30:59 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: 1.7\r
10 X-Spam-Level: *\r
11 X-Spam-Status: No, score=1.7 tagged_above=-999 required=5\r
12         tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
13         FREEMAIL_FROM=0.001, FREEMAIL_REPLY=2.499, RCVD_IN_DNSWL_LOW=-0.7]\r
14         autolearn=disabled\r
15 Received: from olra.theworths.org ([127.0.0.1])\r
16         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
17         with ESMTP id g9UWIRmDWkDn for <notmuch@notmuchmail.org>;\r
18         Fri, 16 Dec 2011 02:30:58 -0800 (PST)\r
19 Received: from mail-qw0-f53.google.com (mail-qw0-f53.google.com\r
20         [209.85.216.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
21         (No client certificate requested)\r
22         by olra.theworths.org (Postfix) with ESMTPS id A5BCD431FD0\r
23         for <notmuch@notmuchmail.org>; Fri, 16 Dec 2011 02:30:58 -0800 (PST)\r
24 Received: by qadb15 with SMTP id b15so2208285qad.5\r
25         for <notmuch@notmuchmail.org>; Fri, 16 Dec 2011 02:30:57 -0800 (PST)\r
26 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;\r
27         h=from:to:subject:date:message-id:x-mailer;\r
28         bh=8nLvcIoKT2nYDsSbBPjXM9aErCPsbBRptGRf3jenFTs=;\r
29         b=kRHjHc4bfMmf2iMrtIZupD29mGJ9jodxkEzskou8TTG6C89NRlvyQ+tt3iCOIARZuh\r
30         2aLgp/JyZuLkhfXGCdbhUgxeZamFM+x2QMV2Ld9/req4phRJyKabBPdmmCki7Tpqb2XX\r
31         C2MRUIYSOLqoGz3307Kc1nW4VJZ2+PIJYJ8/I=\r
32 Received: by 10.224.105.208 with SMTP id u16mr10409438qao.94.1324031456989;\r
33         Fri, 16 Dec 2011 02:30:56 -0800 (PST)\r
34 Received: from localhost.localdomain (c-68-80-94-73.hsd1.pa.comcast.net.\r
35         [68.80.94.73])\r
36         by mx.google.com with ESMTPS id r10sm18869506qaz.7.2011.12.16.02.30.55\r
37         (version=TLSv1/SSLv3 cipher=OTHER);\r
38         Fri, 16 Dec 2011 02:30:56 -0800 (PST)\r
39 From: Aaron Ecay <aaronecay@gmail.com>\r
40 To: notmuch@notmuchmail.org\r
41 Subject: [PATCH] [emacs] Add an argument to notmuch-mua-mail\r
42 Date: Fri, 16 Dec 2011 05:30:39 -0500\r
43 Message-Id: <1324031439-72313-1-git-send-email-aaronecay@gmail.com>\r
44 X-Mailer: git-send-email 1.7.8\r
45 X-BeenThere: notmuch@notmuchmail.org\r
46 X-Mailman-Version: 2.1.13\r
47 Precedence: list\r
48 List-Id: "Use and development of the notmuch mail system."\r
49         <notmuch.notmuchmail.org>\r
50 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
51         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
52 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
53 List-Post: <mailto:notmuch@notmuchmail.org>\r
54 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
55 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
56         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
57 X-List-Received-Date: Fri, 16 Dec 2011 10:30:59 -0000\r
58 \r
59 >From the emacs changelog:\r
60 \r
61   ** `compose-mail' now accepts an optional 8th arg, RETURN-ACTION, and\r
62   passes it to the mail user agent function.  This argument specifies an\r
63   action for returning to the caller after finishing with the mail.\r
64   This is currently used by Rmail to delete a mail window.\r
65 \r
66 Under Emacs 24, notmuch breaks when this argument is passed to it by a\r
67 function in another part of Emacs.  One example of a functon that does\r
68 this is report-emacs-bug -- so notmuch users cannot file emacs bug\r
69 reports!\r
70 \r
71 This patch also adds a &rest argument to the arg-list of this function,\r
72 to future-proof against such changes.  This is adapted from the approach\r
73 taken by message-mail, a similar function built into emacs.\r
74 \r
75 This patch was originally submitted by richardmurri@gmail.com on Aug. 1:\r
76 id:"877h6x6oor.fsf@veracitynetworks.com"\r
77 Signed-off-by: Aaron Ecay <aaronecay@gmail.com>\r
78 ---\r
79  emacs/notmuch-mua.el |    6 ++++--\r
80  1 files changed, 4 insertions(+), 2 deletions(-)\r
81 \r
82 diff --git a/emacs/notmuch-mua.el b/emacs/notmuch-mua.el\r
83 index 8824b08..23552ad 100644\r
84 --- a/emacs/notmuch-mua.el\r
85 +++ b/emacs/notmuch-mua.el\r
86 @@ -125,7 +125,8 @@ list."\r
87    (message-goto-to))\r
88  \r
89  (defun notmuch-mua-mail (&optional to subject other-headers continue\r
90 -                                  switch-function yank-action send-actions)\r
91 +                                  switch-function yank-action send-actions\r
92 +                                  return-action &rest ignored)\r
93    "Invoke the notmuch mail composition window."\r
94    (interactive)\r
95  \r
96 @@ -139,7 +140,8 @@ list."\r
97                         (notmuch-user-name) " <" (notmuch-user-primary-email) ">")) other-headers))\r
98  \r
99    (message-mail to subject other-headers continue\r
100 -               switch-function yank-action send-actions)\r
101 +               switch-function yank-action send-actions\r
102 +               return-action)\r
103    (message-sort-headers)\r
104    (message-hide-headers)\r
105    (set-buffer-modified-p nil)\r
106 -- \r
107 1.7.8\r
108 \r