Re: Can't run my functions using notmuch-<search/show>-add-tag since update
authorJameson Graef Rollins <jrollins@finestructure.net>
Mon, 2 Apr 2012 08:42:09 +0000 (01:42 +1700)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:45:59 +0000 (09:45 -0800)
5b/cec50748b3227c3cc45e969e9f404f8fe884a2 [new file with mode: 0644]

diff --git a/5b/cec50748b3227c3cc45e969e9f404f8fe884a2 b/5b/cec50748b3227c3cc45e969e9f404f8fe884a2
new file mode 100644 (file)
index 0000000..a6fd084
--- /dev/null
@@ -0,0 +1,137 @@
+Return-Path: <jrollins@finestructure.net>\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 E7FEF431FC7\r
+       for <notmuch@notmuchmail.org>; Mon,  2 Apr 2012 01:42:13 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -2.3\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-2.3 tagged_above=-999 required=5\r
+       tests=[RCVD_IN_DNSWL_MED=-2.3] 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 b6DwQ5E9oOzN for <notmuch@notmuchmail.org>;\r
+       Mon,  2 Apr 2012 01:42:13 -0700 (PDT)\r
+Received: from outgoing-mail.its.caltech.edu (outgoing-mail.its.caltech.edu\r
+       [131.215.239.19])\r
+       by olra.theworths.org (Postfix) with ESMTP id 4A16E431FC2\r
+       for <notmuch@notmuchmail.org>; Mon,  2 Apr 2012 01:42:13 -0700 (PDT)\r
+Received: from earth-doxen.imss.caltech.edu (localhost [127.0.0.1])\r
+       by earth-doxen-postvirus (Postfix) with ESMTP id 25AB666E00E4;\r
+       Mon,  2 Apr 2012 01:42:13 -0700 (PDT)\r
+X-Spam-Scanned: at Caltech-IMSS on earth-doxen by amavisd-new\r
+Received: from finestructure.net (unknown [76.89.193.65])\r
+       (Authenticated sender: jrollins)\r
+       by earth-doxen-submit (Postfix) with ESMTP id 4963266E00C0;\r
+       Mon,  2 Apr 2012 01:42:10 -0700 (PDT)\r
+Received: by finestructure.net (Postfix, from userid 1000)\r
+       id F375C89A; Mon,  2 Apr 2012 01:42:09 -0700 (PDT)\r
+From: Jameson Graef Rollins <jrollins@finestructure.net>\r
+To: Albin Stjerna <albin.stjerna@gmail.com>,\r
+       Notmuch Mail <notmuch@notmuchmail.org>\r
+Subject: Re: Can't run my functions using notmuch-<search/show>-add-tag since\r
+       update\r
+In-Reply-To: <87y5qey3b5.fsf@hecate.student.uu.se>\r
+References: <87y5qey3b5.fsf@hecate.student.uu.se>\r
+User-Agent: Notmuch/0.12+87~g3c4c85f (http://notmuchmail.org) Emacs/23.3.1\r
+       (x86_64-pc-linux-gnu)\r
+Date: Mon, 02 Apr 2012 01:42:09 -0700\r
+Message-ID: <8762di5xum.fsf@servo.finestructure.net>\r
+MIME-Version: 1.0\r
+Content-Type: multipart/signed; boundary="=-=-=";\r
+       micalg=pgp-sha256; protocol="application/pgp-signature"\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: Mon, 02 Apr 2012 08:42:14 -0000\r
+\r
+--=-=-=\r
+Content-Type: text/plain; charset=utf-8\r
+Content-Transfer-Encoding: quoted-printable\r
+\r
+On Mon, Apr 02 2012, Albin Stjerna <albin.stjerna@gmail.com> wrote:\r
+> I have a number of functions in my Emacs config to add standard tags to e=\r
+mails in notmuch. Since a recent upgrade of notmuch on debian testing (curr=\r
+ent version 0.12, not sure what the older version was), these functions no =\r
+longer seem to work. For example, running this function:\r
+>\r
+> (defun notmuch-show-read/review ()\r
+>   (interactive)\r
+>   (notmuch-show-add-tag "read/review")\r
+>   (notmuch-show-archive-thread))\r
+>\r
+> will produce the following error:\r
+>\r
+> notmuch-show-read/review: Wrong number of arguments: #[nil "=C3=80=C3=81!=\r
+=C2=87" [notmuch-show-tag "+"] 2 ("/usr/share/emacs-snapshot/site-lisp/notm=\r
+uch/notmuch-show.elc" . 53071) nil], 1\r
+>\r
+> What has changed, and what can I do to fix this problem? The docstrings f=\r
+or the functions I use doesn't really give any clues.\r
+\r
+Hi, Albin.  Yes, there were some recent changes to how tagging is\r
+handled that has caused a bit of confusion.  I think we might also need\r
+to tweak it a bit more to get it right.  Sorry you ran into trouble.\r
+\r
+However, in the mean time, I think you will need to modify your function\r
+as such:\r
+\r
+(defun notmuch-show-read/review ()\r
+  (interactive)\r
+  (notmuch-show-tag-message "+read/review")\r
+  (notmuch-show-archive-thread))\r
+\r
+Note the new tagging function is notmuch-show-tag-message, and the\r
+tagging operation has to include the sign.\r
+\r
+I think this interface can be cleaned up considerably, and I have some\r
+ideas how (based on improvements I just submitted for search-mode [0]).\r
+\r
+[0] id:"1333354853-25729-1-git-send-email-jrollins@finestructure.net"\r
+\r
+Note, there are also now a suite of show-mode archiving functions,\r
+depending on your needs:\r
+\r
+  notmuch-show-archive-thread\r
+  notmuch-show-archive-thread-then-next\r
+  notmuch-show-archive-thread-then-exit\r
+  notmuch-show-archive-message\r
+  notmuch-show-archive-message-then-next-or-exit\r
+  notmuch-show-archive-message-then-next-or-next-thread\r
+\r
+hth, and good luck.\r
+\r
+jamie.\r
+\r
+--=-=-=\r
+Content-Type: application/pgp-signature\r
+\r
+-----BEGIN PGP SIGNATURE-----\r
+Version: GnuPG v1.4.12 (GNU/Linux)\r
+\r
+iQIcBAEBCAAGBQJPeWZhAAoJEO00zqvie6q8s4wP/2+EDUkvU9kcQmEVD153twQV\r
+/nj9xfYzZGSAi+KiGmNUx2mO2Zw59tR5qZY5OhZuxzZEJ0kP7ngnFKM98nE/+r9r\r
+SSOITkFbsemGCOGMf5gLp1l56bU8oDxyvA9hW58VsyTeSu0Tdy+UWdgQGhzkJmwH\r
+K9h/JXCL9wMlvxw3fqqqxouxWevZRpHlQCzhRM616ndUuC21vzhNp+0aUU8DmVNf\r
+FiiHMnaXeIKYU0wj/OZFJM/4kPAFZ1wl9SZCcnZi8ttM6vL32VpeEtVHo8LSyZU1\r
+PuYOIVZYJ6PiqKBZu3FmeCdyPEwUqRoSXRvBgd/n85yTPZTsvkqMr3B466tU2nDo\r
++2bcJ38ysAUCkyPDi6P2huTlwXPEjqjX9X2jYOY9fl3R9c7WDymLparP8QrtjjEO\r
+29RaKtyw3RaMqeX/TN7qZZ+iBAwWlbWsb5oYbqCuAXMsZ4WZbW35u8/8E56TsbDH\r
+5qji3/nx27/eT0tvCiQrPpzr+ohMbDf3uH0qKX/eolNaySS7yK5raBu+2d+myKQl\r
+PHJHil6aOl2MpO6SV4N1DeCMD01bYATeDdnFjeC2UVKXIdmJiyB5XukRCJD/r9+w\r
+nTBYS3deH0YF6sMXJOl+z6Wd6sa5uCAh3PTa8aDtxvgqLtE3qVoKzp/a8ThS5GDT\r
+N545lSQKqTYTOEU2L4sT\r
+=a3il\r
+-----END PGP SIGNATURE-----\r
+--=-=-=--\r