[PATCH] emacs: Fix notmuch-message-mark-replied.
authorIngo Lohmar <i.lohmar@gmail.com>
Sun, 3 Jun 2012 18:23:57 +0000 (21:23 +0300)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:47:36 +0000 (09:47 -0800)
e1/b6137dddc6b688764864cc56d57ddb6fab2783 [new file with mode: 0644]

diff --git a/e1/b6137dddc6b688764864cc56d57ddb6fab2783 b/e1/b6137dddc6b688764864cc56d57ddb6fab2783
new file mode 100644 (file)
index 0000000..d646a2d
--- /dev/null
@@ -0,0 +1,89 @@
+Return-Path: <i.lohmar@gmail.com>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id 46304431FC4\r
+       for <notmuch@notmuchmail.org>; Sun,  3 Jun 2012 11:24:07 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.799\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5\r
+       tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
+       FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id eDv1zGJ1O1Ru for <notmuch@notmuchmail.org>;\r
+       Sun,  3 Jun 2012 11:24:07 -0700 (PDT)\r
+Received: from mail-we0-f181.google.com (mail-we0-f181.google.com\r
+       [74.125.82.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id B8879431FAF\r
+       for <notmuch@notmuchmail.org>; Sun,  3 Jun 2012 11:24:06 -0700 (PDT)\r
+Received: by werj55 with SMTP id j55so2895305wer.26\r
+       for <notmuch@notmuchmail.org>; Sun, 03 Jun 2012 11:24:04 -0700 (PDT)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;\r
+       h=from:to:subject:user-agent:date:message-id:mime-version\r
+       :content-type; bh=0h5GJf/CpYOVQTryrXziUk3DIQtu+DWZPZ2VY9Ue2zY=;\r
+       b=Akm2xx34xZei96LF5mi0f0ijQfBgzmNDTjTKBsPlzH87V6lX8Bui2q5YAHl0F/w3d7\r
+       tNJZ8QOOhFw6C7y0LVkwi5TpQ0mr4N7qJax1/9mIinVX3VYi0qbFCfUQcy9Tc4AVdvnB\r
+       4Q9d9MuigtXceIB1iga20a05GAcUePLon9zxDXN1h3Z8GqRYmCo4enq+oYNWrveRLLTB\r
+       PNiIc5fZ1amLurFhjkWFsImJOWyEpxTMdMHbHCRtjB5PSP9CrnwgOXGh2Cm9Tyd+Xadc\r
+       SOV+t0mEbigaCW2duSBJ0sw/Vq2YSJZUq+w6/q+zCTYxh7hl5dS+YLeIstP6DIYObRRA\r
+       Zwew==\r
+Received: by 10.216.211.8 with SMTP id v8mr8023447weo.176.1338747844199;\r
+       Sun, 03 Jun 2012 11:24:04 -0700 (PDT)\r
+Received: from localhost (gr-140-233.dyn.huji.ac.il. [132.64.140.233])\r
+       by mx.google.com with ESMTPS id eb8sm14497009wib.11.2012.06.03.11.24.01\r
+       (version=TLSv1/SSLv3 cipher=OTHER);\r
+       Sun, 03 Jun 2012 11:24:03 -0700 (PDT)\r
+From: Ingo Lohmar <i.lohmar@gmail.com>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH] emacs: Fix notmuch-message-mark-replied.\r
+User-Agent: Notmuch/0.13.1+28~g981a87f (http://notmuchmail.org)\r
+       Emacs/24.1.50.1 (x86_64-pc-linux-gnu)\r
+Date: Sun, 03 Jun 2012 21:23:57 +0300\r
+Message-ID: <87vcj8ckzm.fsf@acer.localhost.com>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain\r
+X-Mailman-Approved-At: Sun, 03 Jun 2012 22:56:53 -0700\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://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: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Sun, 03 Jun 2012 18:24:07 -0000\r
+\r
+notmuch-message-mark-replied used "apply" to change message tags\r
+according to notmuch-message-replied-tags after sending a reply.  This\r
+works if the latter is a single-element list.  But with the recently\r
+changed format of tag changes, it breaks for multiple-element lists.\r
+Use "funcall" to properly pass the list of tag changes as a single\r
+argument.\r
+---\r
+ emacs/notmuch-message.el |    2 +-\r
+ 1 file changed, 1 insertion(+), 1 deletion(-)\r
+\r
+diff --git a/emacs/notmuch-message.el b/emacs/notmuch-message.el\r
+index 5964caa..d3738bf 100644\r
+--- a/emacs/notmuch-message.el\r
++++ b/emacs/notmuch-message.el\r
+@@ -45,7 +45,7 @@ the \"inbox\" and \"todo\", you would set\r
+                               (concat "+" str)\r
+                             str))\r
+                         notmuch-message-replied-tags)))\r
+-      (apply 'notmuch-tag (notmuch-id-to-query (car (car rep))) tags)))))\r
++      (funcall 'notmuch-tag (notmuch-id-to-query (car (car rep))) tags)))))\r
\r
+ (add-hook 'message-send-hook 'notmuch-message-mark-replied)\r
\r
+-- \r
+1.7.10\r
+\r