Re: [feature request] emacs: use `notmuch insert` for FCC
[notmuch-archives.git] / ed / 70d2ec558be9adf9412816af3156f367bfd0ac
1 Return-Path: <amdragon@mit.edu>\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 252E1431FBF\r
6         for <notmuch@notmuchmail.org>; Tue, 22 Oct 2013 17:22:21 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -0.7\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
12         tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
13 Received: from olra.theworths.org ([127.0.0.1])\r
14         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
15         with ESMTP id cKXlP6ncRrsN for <notmuch@notmuchmail.org>;\r
16         Tue, 22 Oct 2013 17:22:15 -0700 (PDT)\r
17 Received: from dmz-mailsec-scanner-5.mit.edu (dmz-mailsec-scanner-5.mit.edu\r
18         [18.7.68.34])\r
19         by olra.theworths.org (Postfix) with ESMTP id 0BB0B429E26\r
20         for <notmuch@notmuchmail.org>; Tue, 22 Oct 2013 17:22:07 -0700 (PDT)\r
21 X-AuditID: 12074422-b7f5a8e000000a34-0a-526716af9433\r
22 Received: from mailhub-auth-4.mit.edu ( [18.7.62.39])\r
23         by dmz-mailsec-scanner-5.mit.edu (Symantec Messaging Gateway) with SMTP\r
24         id 5F.C5.02612.FA617625; Tue, 22 Oct 2013 20:22:07 -0400 (EDT)\r
25 Received: from outgoing.mit.edu (outgoing-auth-1.mit.edu [18.9.28.11])\r
26         by mailhub-auth-4.mit.edu (8.13.8/8.9.2) with ESMTP id r9N0M59P017166; \r
27         Tue, 22 Oct 2013 20:22:05 -0400\r
28 Received: from drake.dyndns.org\r
29         (216-15-114-40.c3-0.arl-ubr1.sbo-arl.ma.cable.rcn.com\r
30         [216.15.114.40]) (authenticated bits=0)\r
31         (User authenticated as amdragon@ATHENA.MIT.EDU)\r
32         by outgoing.mit.edu (8.13.8/8.12.4) with ESMTP id r9N0M3uM005845\r
33         (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT);\r
34         Tue, 22 Oct 2013 20:22:04 -0400\r
35 Received: from amthrax by drake.dyndns.org with local (Exim 4.77)\r
36         (envelope-from <amdragon@mit.edu>)\r
37         id 1VYmD5-0008KN-QR; Tue, 22 Oct 2013 20:22:03 -0400\r
38 From: Austin Clements <amdragon@MIT.EDU>\r
39 To: notmuch@notmuchmail.org\r
40 Subject: [PATCH v2 5/8] pick: Fix incorrect use of `notmuch-pick-tag'\r
41 Date: Tue, 22 Oct 2013 20:21:58 -0400\r
42 Message-Id: <1382487721-31776-6-git-send-email-amdragon@mit.edu>\r
43 X-Mailer: git-send-email 1.8.4.rc3\r
44 In-Reply-To: <1382487721-31776-1-git-send-email-amdragon@mit.edu>\r
45 References: <1382487721-31776-1-git-send-email-amdragon@mit.edu>\r
46 X-Brightmail-Tracker:\r
47  H4sIAAAAAAAAA+NgFtrNIsWRmVeSWpSXmKPExsUixG6nrrteLD3IoHG2scXquTwW12/OZHZg\r
48         8tg56y67x7NVt5gDmKK4bFJSczLLUov07RK4MjZueMpcsIajYkrLT+YGxh72LkZODgkBE4kz\r
49         S+eyQthiEhfurWcDsYUE9jFKXHsPZHMB2RsZJb79usUK4dxhknh89ggjRNVcRolp78pAbDYB\r
50         DYlt+5eDxUUEpCV23p0NNpVZwFHi8/5FYFOFBVwl5s34ChZnEVCVuHlgJ9gVvAIOEoc6rkBd\r
51         pCSx8NQ2sBpOoN43Oz5AXeQgMWXnGZYJjPwLGBlWMcqm5Fbp5iZm5hSnJusWJyfm5aUW6Zrq\r
52         5WaW6KWmlG5iBIeRi9IOxp8HlQ4xCnAwKvHwPmhJCxJiTSwrrsw9xCjJwaQkyqvOnx4kxJeU\r
53         n1KZkVicEV9UmpNafIhRgoNZSYS32ReonDclsbIqtSgfJiXNwaIkznuLwz5ISCA9sSQ1OzW1\r
54         ILUIJivDwaEkwdslCjRUsCg1PbUiLTOnBCHNxMEJMpwHaPgKkBre4oLE3OLMdIj8KUZFKXHe\r
55         MyAJAZBERmkeXC8szl8xigO9IgzRzgNMEXDdr4AGMwENnrIE5OrikkSElFQDo4/dhzu8gsY3\r
56         JSV3pfy61LFa5vGnCwv7nnw8Jrz3xk+fTs0JlReYnKLEtm7a2lLu1HNk/Smv6EXXCv2StWNe\r
57         cr6yeL4q8EHGbdYPPFZiGiL3Nl9zKArTvP5u/qoz7qwXwidbJEeeN2CMnrQ+XayuLVc5UcM9\r
58         do+68Leir70mDo+corWLrzXOU2Ipzkg01GIuKk4EACNgFtjOAgAA\r
59 X-BeenThere: notmuch@notmuchmail.org\r
60 X-Mailman-Version: 2.1.13\r
61 Precedence: list\r
62 List-Id: "Use and development of the notmuch mail system."\r
63         <notmuch.notmuchmail.org>\r
64 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
65         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
66 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
67 List-Post: <mailto:notmuch@notmuchmail.org>\r
68 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
69 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
70         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
71 X-List-Received-Date: Wed, 23 Oct 2013 00:22:21 -0000\r
72 \r
73 `notmuch-pick-tag' takes a list of tag changes, but\r
74 `notmuch-pick-archive-message' passes it a &rest argument.  This\r
75 happens to work if `notmuch-archive-tags' contains a single tag (which\r
76 it usually does), but will break if it does not.\r
77 ---\r
78  contrib/notmuch-pick/notmuch-pick.el | 3 +--\r
79  1 file changed, 1 insertion(+), 2 deletions(-)\r
80 \r
81 diff --git a/contrib/notmuch-pick/notmuch-pick.el b/contrib/notmuch-pick/notmuch-pick.el\r
82 index 0aa651e..8f504ed 100644\r
83 --- a/contrib/notmuch-pick/notmuch-pick.el\r
84 +++ b/contrib/notmuch-pick/notmuch-pick.el\r
85 @@ -542,8 +542,7 @@ message will be \"unarchived\", i.e. the tag changes in\r
86  `notmuch-archive-tags' will be reversed."\r
87    (interactive "P")\r
88    (when notmuch-archive-tags\r
89 -    (apply 'notmuch-pick-tag\r
90 -          (notmuch-tag-change-list notmuch-archive-tags unarchive))))\r
91 +    (notmuch-pick-tag (notmuch-tag-change-list notmuch-archive-tags unarchive))))\r
92  \r
93  (defun notmuch-pick-archive-message-then-next (&optional unarchive)\r
94    "Archive the current message and move to next matching message."\r
95 -- \r
96 1.8.4.rc3\r
97 \r