1 Return-Path: <subscribe@toshine.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 191DB431FDA
\r
6 for <notmuch@notmuchmail.org>; Tue, 6 May 2014 03:46:54 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\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 hrTEm7sfAABx for <notmuch@notmuchmail.org>;
\r
16 Tue, 6 May 2014 03:46:46 -0700 (PDT)
\r
17 X-Greylist: delayed 433 seconds by postgrey-1.32 at olra;
\r
18 Tue, 06 May 2014 03:46:45 PDT
\r
19 Received: from fallback-in2.mxes.net (fallback-out2.mxes.net [216.86.168.191])
\r
20 by olra.theworths.org (Postfix) with ESMTP id F0AA2431FD6
\r
21 for <notmuch@notmuchmail.org>; Tue, 6 May 2014 03:46:45 -0700 (PDT)
\r
22 Received: from mxout-08.mxes.net (mxout-08.mxes.net [216.86.168.183])
\r
23 by fallback-in1.mxes.net (Postfix) with ESMTP id 2A6892FD7AD
\r
24 for <notmuch@notmuchmail.org>; Tue, 6 May 2014 06:39:32 -0400 (EDT)
\r
25 Received: from wm1.irbs.net (wm1.irbs.net [216.86.168.168])
\r
26 by smtp.mxes.net (Postfix) with ESMTP id 72C1250A73
\r
27 for <notmuch@notmuchmail.org>; Tue, 6 May 2014 06:39:31 -0400 (EDT)
\r
28 Received: from localhost (wm1.irbs.net [216.86.168.168])
\r
29 by wm1.irbs.net (Postfix) with ESMTPA id 540634FE2B1
\r
30 for <notmuch@notmuchmail.org>; Tue, 6 May 2014 06:39:31 -0400 (EDT)
\r
31 Received: from lon.namesco.net (lon.namesco.net [195.7.254.102]) by
\r
32 webmail.tuffmail.net (Horde Framework) with HTTP;
\r
33 Tue, 06 May 2014 11:39:31 +0100
\r
34 Message-ID: <20140506113931.75041t5v5q33pvr4@webmail.tuffmail.net>
\r
35 Date: Tue, 06 May 2014 11:39:31 +0100
\r
36 From: 'Mash <subscribe@toshine.net>
\r
37 To: notmuch@notmuchmail.org
\r
38 Subject: Notmuch-tree add/remove/toggle tag
\r
40 Content-Type: text/plain;
\r
44 Content-Disposition: inline
\r
45 Content-Transfer-Encoding: quoted-printable
\r
46 User-Agent: Dynamic Internet Messaging Program (DIMP) H3 (1.0)
\r
47 X-BeenThere: notmuch@notmuchmail.org
\r
48 X-Mailman-Version: 2.1.13
\r
50 List-Id: "Use and development of the notmuch mail system."
\r
51 <notmuch.notmuchmail.org>
\r
52 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
53 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
54 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
55 List-Post: <mailto:notmuch@notmuchmail.org>
\r
56 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
57 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
58 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
59 X-List-Received-Date: Tue, 06 May 2014 10:46:54 -0000
\r
61 I am trying to setup a tag toggle to be used in the Notmuch-tree.
\r
63 I referred to "Add a key binding to add/remove/toggle a tag": =20
\r
64 http://notmuchmail.org/emacstips/#index8h2
\r
66 Looking at "notmuch-tree.el" I noticed
\r
68 (defun notmuch-tree-get-tags ()
\r
69 "Return the tags of the current message."
\r
70 (notmuch-tree-get-prop :tags))
\r
74 (defun notmuch-tree-tag (tag-changes)
\r
75 "Change tags for the current message"
\r
77 (list (notmuch-read-tag-changes (notmuch-tree-get-tags) "Tag message")))
\r
78 (notmuch-tag (notmuch-tree-get-message-id) tag-changes)
\r
79 (notmuch-tree-tag-update-display tag-changes))
\r
81 Which in my mind would be substituted for "notmuch-show-tag-message" =20
\r
82 and "notmuch-show-get-tags" respectively in the "add a toggle =20
\r
83 "deleted" key" example.
\r
85 (define-key notmuch-tree-mode-map "d"
\r
87 "toggle deleted tag for message"
\r
90 (if (member "deleted" (notmuch-tree-get-tags))
\r
91 "-deleted" "+deleted"))))
\r
93 The problem is that in notmuch-tree when I get the following message: =20
\r
94 "Entering debugger... button-at: Args out of range: 0" and the tag =20
\r
95 fails to be toggled.
\r
97 Not quite sure where I am going wrong here?
\r