Re: [feature request] emacs: use `notmuch insert` for FCC
[notmuch-archives.git] / 5e / 7347a2bb7b7dd6b53f0011019255f4cf4c6e71
1 Return-Path: <dmitry.kurochkin@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 183A4429E25\r
6         for <notmuch@notmuchmail.org>; Fri, 16 Dec 2011 03:04:53 -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 09Mmi-g4BTKm for <notmuch@notmuchmail.org>;\r
18         Fri, 16 Dec 2011 03:04:52 -0800 (PST)\r
19 Received: from mail-fx0-f53.google.com (mail-fx0-f53.google.com\r
20         [209.85.161.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 47811431FD0\r
23         for <notmuch@notmuchmail.org>; Fri, 16 Dec 2011 03:04:52 -0800 (PST)\r
24 Received: by faaa5 with SMTP id a5so3123935faa.26\r
25         for <notmuch@notmuchmail.org>; Fri, 16 Dec 2011 03:04:51 -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:in-reply-to:references:user-agent:date:message-id\r
28         :mime-version:content-type;\r
29         bh=jdTPbdBU5Xpsm/OE0gt/EPaf8B1KtE1e5S8Yxmf6yrM=;\r
30         b=OK4rcLSDfAhz1Wv2d0k6iziiBCBvb2n8S8FBIrChwyyQWEfIxi+Uvp1ri7jZirF2fY\r
31         3l27IftoPiDFn2Q935Icu+k0wtpfKzri5uE18Bu8FGXCMNZudcrTJyrF806H5OtZFRer\r
32         WBIsJxpPhs2YDIxZCb7WJgsshkNA+fT2FeUvE=\r
33 Received: by 10.180.96.195 with SMTP id du3mr11695113wib.31.1324033490718;\r
34         Fri, 16 Dec 2011 03:04:50 -0800 (PST)\r
35 Received: from localhost ([91.144.186.21])\r
36         by mx.google.com with ESMTPS id dd4sm12624020wib.1.2011.12.16.03.04.49\r
37         (version=TLSv1/SSLv3 cipher=OTHER);\r
38         Fri, 16 Dec 2011 03:04:49 -0800 (PST)\r
39 From: Dmitry Kurochkin <dmitry.kurochkin@gmail.com>\r
40 To: Aaron Ecay <aaronecay@gmail.com>, notmuch@notmuchmail.org\r
41 Subject: Re: [PATCH] [emacs] Add an argument to notmuch-mua-mail\r
42 In-Reply-To: <1324031439-72313-1-git-send-email-aaronecay@gmail.com>\r
43 References: <1324031439-72313-1-git-send-email-aaronecay@gmail.com>\r
44 User-Agent: Notmuch/0.10.2+96~g74e5ae5 (http://notmuchmail.org) Emacs/23.3.1\r
45         (x86_64-pc-linux-gnu)\r
46 Date: Fri, 16 Dec 2011 15:04:10 +0400\r
47 Message-ID: <87wr9wsrpx.fsf@gmail.com>\r
48 MIME-Version: 1.0\r
49 Content-Type: text/plain; charset=us-ascii\r
50 X-BeenThere: notmuch@notmuchmail.org\r
51 X-Mailman-Version: 2.1.13\r
52 Precedence: list\r
53 List-Id: "Use and development of the notmuch mail system."\r
54         <notmuch.notmuchmail.org>\r
55 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
56         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
57 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
58 List-Post: <mailto:notmuch@notmuchmail.org>\r
59 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
60 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
61         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
62 X-List-Received-Date: Fri, 16 Dec 2011 11:04:53 -0000\r
63 \r
64 On Fri, 16 Dec 2011 05:30:39 -0500, Aaron Ecay <aaronecay@gmail.com> wrote:\r
65 > From the emacs changelog:\r
66\r
67 >   ** `compose-mail' now accepts an optional 8th arg, RETURN-ACTION, and\r
68 >   passes it to the mail user agent function.  This argument specifies an\r
69 >   action for returning to the caller after finishing with the mail.\r
70 >   This is currently used by Rmail to delete a mail window.\r
71\r
72 > Under Emacs 24, notmuch breaks when this argument is passed to it by a\r
73 > function in another part of Emacs.  One example of a functon that does\r
74 > this is report-emacs-bug -- so notmuch users cannot file emacs bug\r
75 > reports!\r
76\r
77 > This patch also adds a &rest argument to the arg-list of this function,\r
78 > to future-proof against such changes.  This is adapted from the approach\r
79 > taken by message-mail, a similar function built into emacs.\r
80\r
81 > This patch was originally submitted by richardmurri@gmail.com on Aug. 1:\r
82 > id:"877h6x6oor.fsf@veracitynetworks.com"\r
83 > Signed-off-by: Aaron Ecay <aaronecay@gmail.com>\r
84 > ---\r
85 \r
86 Looks good.  And thanks for the good preamble.\r
87 \r
88 Regards,\r
89   Dmitry\r
90 \r
91 >  emacs/notmuch-mua.el |    6 ++++--\r
92 >  1 files changed, 4 insertions(+), 2 deletions(-)\r
93\r
94 > diff --git a/emacs/notmuch-mua.el b/emacs/notmuch-mua.el\r
95 > index 8824b08..23552ad 100644\r
96 > --- a/emacs/notmuch-mua.el\r
97 > +++ b/emacs/notmuch-mua.el\r
98 > @@ -125,7 +125,8 @@ list."\r
99 >    (message-goto-to))\r
100 >  \r
101 >  (defun notmuch-mua-mail (&optional to subject other-headers continue\r
102 > -                                switch-function yank-action send-actions)\r
103 > +                                switch-function yank-action send-actions\r
104 > +                                return-action &rest ignored)\r
105 >    "Invoke the notmuch mail composition window."\r
106 >    (interactive)\r
107 >  \r
108 > @@ -139,7 +140,8 @@ list."\r
109 >                       (notmuch-user-name) " <" (notmuch-user-primary-email) ">")) other-headers))\r
110 >  \r
111 >    (message-mail to subject other-headers continue\r
112 > -             switch-function yank-action send-actions)\r
113 > +             switch-function yank-action send-actions\r
114 > +             return-action)\r
115 >    (message-sort-headers)\r
116 >    (message-hide-headers)\r
117 >    (set-buffer-modified-p nil)\r
118 > -- \r
119 > 1.7.8\r
120\r
121 > _______________________________________________\r
122 > notmuch mailing list\r
123 > notmuch@notmuchmail.org\r
124 > http://notmuchmail.org/mailman/listinfo/notmuch\r