1 Return-Path: <i.lohmar@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 46304431FC4
\r
6 for <notmuch@notmuchmail.org>; Sun, 3 Jun 2012 11:24:07 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-0.799 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, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled
\r
14 Received: from olra.theworths.org ([127.0.0.1])
\r
15 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
16 with ESMTP id eDv1zGJ1O1Ru for <notmuch@notmuchmail.org>;
\r
17 Sun, 3 Jun 2012 11:24:07 -0700 (PDT)
\r
18 Received: from mail-we0-f181.google.com (mail-we0-f181.google.com
\r
19 [74.125.82.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits))
\r
20 (No client certificate requested)
\r
21 by olra.theworths.org (Postfix) with ESMTPS id B8879431FAF
\r
22 for <notmuch@notmuchmail.org>; Sun, 3 Jun 2012 11:24:06 -0700 (PDT)
\r
23 Received: by werj55 with SMTP id j55so2895305wer.26
\r
24 for <notmuch@notmuchmail.org>; Sun, 03 Jun 2012 11:24:04 -0700 (PDT)
\r
25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
\r
26 h=from:to:subject:user-agent:date:message-id:mime-version
\r
27 :content-type; bh=0h5GJf/CpYOVQTryrXziUk3DIQtu+DWZPZ2VY9Ue2zY=;
\r
28 b=Akm2xx34xZei96LF5mi0f0ijQfBgzmNDTjTKBsPlzH87V6lX8Bui2q5YAHl0F/w3d7
\r
29 tNJZ8QOOhFw6C7y0LVkwi5TpQ0mr4N7qJax1/9mIinVX3VYi0qbFCfUQcy9Tc4AVdvnB
\r
30 4Q9d9MuigtXceIB1iga20a05GAcUePLon9zxDXN1h3Z8GqRYmCo4enq+oYNWrveRLLTB
\r
31 PNiIc5fZ1amLurFhjkWFsImJOWyEpxTMdMHbHCRtjB5PSP9CrnwgOXGh2Cm9Tyd+Xadc
\r
32 SOV+t0mEbigaCW2duSBJ0sw/Vq2YSJZUq+w6/q+zCTYxh7hl5dS+YLeIstP6DIYObRRA
\r
34 Received: by 10.216.211.8 with SMTP id v8mr8023447weo.176.1338747844199;
\r
35 Sun, 03 Jun 2012 11:24:04 -0700 (PDT)
\r
36 Received: from localhost (gr-140-233.dyn.huji.ac.il. [132.64.140.233])
\r
37 by mx.google.com with ESMTPS id eb8sm14497009wib.11.2012.06.03.11.24.01
\r
38 (version=TLSv1/SSLv3 cipher=OTHER);
\r
39 Sun, 03 Jun 2012 11:24:03 -0700 (PDT)
\r
40 From: Ingo Lohmar <i.lohmar@gmail.com>
\r
41 To: notmuch@notmuchmail.org
\r
42 Subject: [PATCH] emacs: Fix notmuch-message-mark-replied.
\r
43 User-Agent: Notmuch/0.13.1+28~g981a87f (http://notmuchmail.org)
\r
44 Emacs/24.1.50.1 (x86_64-pc-linux-gnu)
\r
45 Date: Sun, 03 Jun 2012 21:23:57 +0300
\r
46 Message-ID: <87vcj8ckzm.fsf@acer.localhost.com>
\r
48 Content-Type: text/plain
\r
49 X-Mailman-Approved-At: Sun, 03 Jun 2012 22:56:53 -0700
\r
50 X-BeenThere: notmuch@notmuchmail.org
\r
51 X-Mailman-Version: 2.1.13
\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: Sun, 03 Jun 2012 18:24:07 -0000
\r
64 notmuch-message-mark-replied used "apply" to change message tags
\r
65 according to notmuch-message-replied-tags after sending a reply. This
\r
66 works if the latter is a single-element list. But with the recently
\r
67 changed format of tag changes, it breaks for multiple-element lists.
\r
68 Use "funcall" to properly pass the list of tag changes as a single
\r
71 emacs/notmuch-message.el | 2 +-
\r
72 1 file changed, 1 insertion(+), 1 deletion(-)
\r
74 diff --git a/emacs/notmuch-message.el b/emacs/notmuch-message.el
\r
75 index 5964caa..d3738bf 100644
\r
76 --- a/emacs/notmuch-message.el
\r
77 +++ b/emacs/notmuch-message.el
\r
78 @@ -45,7 +45,7 @@ the \"inbox\" and \"todo\", you would set
\r
81 notmuch-message-replied-tags)))
\r
82 - (apply 'notmuch-tag (notmuch-id-to-query (car (car rep))) tags)))))
\r
83 + (funcall 'notmuch-tag (notmuch-id-to-query (car (car rep))) tags)))))
\r
85 (add-hook 'message-send-hook 'notmuch-message-mark-replied)
\r