Re: [PATCH v4 13/16] add indexopts to notmuch python bindings.
[notmuch-archives.git] / 5b / cec50748b3227c3cc45e969e9f404f8fe884a2
1 Return-Path: <jrollins@finestructure.net>\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 E7FEF431FC7\r
6         for <notmuch@notmuchmail.org>; Mon,  2 Apr 2012 01:42:13 -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: -2.3\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-2.3 tagged_above=-999 required=5\r
12         tests=[RCVD_IN_DNSWL_MED=-2.3] 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 b6DwQ5E9oOzN for <notmuch@notmuchmail.org>;\r
16         Mon,  2 Apr 2012 01:42:13 -0700 (PDT)\r
17 Received: from outgoing-mail.its.caltech.edu (outgoing-mail.its.caltech.edu\r
18         [131.215.239.19])\r
19         by olra.theworths.org (Postfix) with ESMTP id 4A16E431FC2\r
20         for <notmuch@notmuchmail.org>; Mon,  2 Apr 2012 01:42:13 -0700 (PDT)\r
21 Received: from earth-doxen.imss.caltech.edu (localhost [127.0.0.1])\r
22         by earth-doxen-postvirus (Postfix) with ESMTP id 25AB666E00E4;\r
23         Mon,  2 Apr 2012 01:42:13 -0700 (PDT)\r
24 X-Spam-Scanned: at Caltech-IMSS on earth-doxen by amavisd-new\r
25 Received: from finestructure.net (unknown [76.89.193.65])\r
26         (Authenticated sender: jrollins)\r
27         by earth-doxen-submit (Postfix) with ESMTP id 4963266E00C0;\r
28         Mon,  2 Apr 2012 01:42:10 -0700 (PDT)\r
29 Received: by finestructure.net (Postfix, from userid 1000)\r
30         id F375C89A; Mon,  2 Apr 2012 01:42:09 -0700 (PDT)\r
31 From: Jameson Graef Rollins <jrollins@finestructure.net>\r
32 To: Albin Stjerna <albin.stjerna@gmail.com>,\r
33         Notmuch Mail <notmuch@notmuchmail.org>\r
34 Subject: Re: Can't run my functions using notmuch-<search/show>-add-tag since\r
35         update\r
36 In-Reply-To: <87y5qey3b5.fsf@hecate.student.uu.se>\r
37 References: <87y5qey3b5.fsf@hecate.student.uu.se>\r
38 User-Agent: Notmuch/0.12+87~g3c4c85f (http://notmuchmail.org) Emacs/23.3.1\r
39         (x86_64-pc-linux-gnu)\r
40 Date: Mon, 02 Apr 2012 01:42:09 -0700\r
41 Message-ID: <8762di5xum.fsf@servo.finestructure.net>\r
42 MIME-Version: 1.0\r
43 Content-Type: multipart/signed; boundary="=-=-=";\r
44         micalg=pgp-sha256; protocol="application/pgp-signature"\r
45 X-BeenThere: notmuch@notmuchmail.org\r
46 X-Mailman-Version: 2.1.13\r
47 Precedence: list\r
48 List-Id: "Use and development of the notmuch mail system."\r
49         <notmuch.notmuchmail.org>\r
50 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
51         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
52 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
53 List-Post: <mailto:notmuch@notmuchmail.org>\r
54 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
55 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
56         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
57 X-List-Received-Date: Mon, 02 Apr 2012 08:42:14 -0000\r
58 \r
59 --=-=-=\r
60 Content-Type: text/plain; charset=utf-8\r
61 Content-Transfer-Encoding: quoted-printable\r
62 \r
63 On Mon, Apr 02 2012, Albin Stjerna <albin.stjerna@gmail.com> wrote:\r
64 > I have a number of functions in my Emacs config to add standard tags to e=\r
65 mails in notmuch. Since a recent upgrade of notmuch on debian testing (curr=\r
66 ent version 0.12, not sure what the older version was), these functions no =\r
67 longer seem to work. For example, running this function:\r
68 >\r
69 > (defun notmuch-show-read/review ()\r
70 >   (interactive)\r
71 >   (notmuch-show-add-tag "read/review")\r
72 >   (notmuch-show-archive-thread))\r
73 >\r
74 > will produce the following error:\r
75 >\r
76 > notmuch-show-read/review: Wrong number of arguments: #[nil "=C3=80=C3=81!=\r
77 =C2=87" [notmuch-show-tag "+"] 2 ("/usr/share/emacs-snapshot/site-lisp/notm=\r
78 uch/notmuch-show.elc" . 53071) nil], 1\r
79 >\r
80 > What has changed, and what can I do to fix this problem? The docstrings f=\r
81 or the functions I use doesn't really give any clues.\r
82 \r
83 Hi, Albin.  Yes, there were some recent changes to how tagging is\r
84 handled that has caused a bit of confusion.  I think we might also need\r
85 to tweak it a bit more to get it right.  Sorry you ran into trouble.\r
86 \r
87 However, in the mean time, I think you will need to modify your function\r
88 as such:\r
89 \r
90 (defun notmuch-show-read/review ()\r
91   (interactive)\r
92   (notmuch-show-tag-message "+read/review")\r
93   (notmuch-show-archive-thread))\r
94 \r
95 Note the new tagging function is notmuch-show-tag-message, and the\r
96 tagging operation has to include the sign.\r
97 \r
98 I think this interface can be cleaned up considerably, and I have some\r
99 ideas how (based on improvements I just submitted for search-mode [0]).\r
100 \r
101 [0] id:"1333354853-25729-1-git-send-email-jrollins@finestructure.net"\r
102 \r
103 Note, there are also now a suite of show-mode archiving functions,\r
104 depending on your needs:\r
105 \r
106   notmuch-show-archive-thread\r
107   notmuch-show-archive-thread-then-next\r
108   notmuch-show-archive-thread-then-exit\r
109   notmuch-show-archive-message\r
110   notmuch-show-archive-message-then-next-or-exit\r
111   notmuch-show-archive-message-then-next-or-next-thread\r
112 \r
113 hth, and good luck.\r
114 \r
115 jamie.\r
116 \r
117 --=-=-=\r
118 Content-Type: application/pgp-signature\r
119 \r
120 -----BEGIN PGP SIGNATURE-----\r
121 Version: GnuPG v1.4.12 (GNU/Linux)\r
122 \r
123 iQIcBAEBCAAGBQJPeWZhAAoJEO00zqvie6q8s4wP/2+EDUkvU9kcQmEVD153twQV\r
124 /nj9xfYzZGSAi+KiGmNUx2mO2Zw59tR5qZY5OhZuxzZEJ0kP7ngnFKM98nE/+r9r\r
125 SSOITkFbsemGCOGMf5gLp1l56bU8oDxyvA9hW58VsyTeSu0Tdy+UWdgQGhzkJmwH\r
126 K9h/JXCL9wMlvxw3fqqqxouxWevZRpHlQCzhRM616ndUuC21vzhNp+0aUU8DmVNf\r
127 FiiHMnaXeIKYU0wj/OZFJM/4kPAFZ1wl9SZCcnZi8ttM6vL32VpeEtVHo8LSyZU1\r
128 PuYOIVZYJ6PiqKBZu3FmeCdyPEwUqRoSXRvBgd/n85yTPZTsvkqMr3B466tU2nDo\r
129 +2bcJ38ysAUCkyPDi6P2huTlwXPEjqjX9X2jYOY9fl3R9c7WDymLparP8QrtjjEO\r
130 29RaKtyw3RaMqeX/TN7qZZ+iBAwWlbWsb5oYbqCuAXMsZ4WZbW35u8/8E56TsbDH\r
131 5qji3/nx27/eT0tvCiQrPpzr+ohMbDf3uH0qKX/eolNaySS7yK5raBu+2d+myKQl\r
132 PHJHil6aOl2MpO6SV4N1DeCMD01bYATeDdnFjeC2UVKXIdmJiyB5XukRCJD/r9+w\r
133 nTBYS3deH0YF6sMXJOl+z6Wd6sa5uCAh3PTa8aDtxvgqLtE3qVoKzp/a8ThS5GDT\r
134 N545lSQKqTYTOEU2L4sT\r
135 =a3il\r
136 -----END PGP SIGNATURE-----\r
137 --=-=-=--\r