1 Return-Path: <pieter@praet.org>
\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 545B141ED86
\r
6 for <notmuch@notmuchmail.org>; Thu, 30 Jun 2011 01:35:55 -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 o7k2QVnulyje for <notmuch@notmuchmail.org>;
\r
16 Thu, 30 Jun 2011 01:35:55 -0700 (PDT)
\r
17 Received: from mail-wy0-f181.google.com (mail-wy0-f181.google.com
\r
18 [74.125.82.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits))
\r
19 (No client certificate requested)
\r
20 by olra.theworths.org (Postfix) with ESMTPS id B74E542119F
\r
21 for <notmuch@notmuchmail.org>; Thu, 30 Jun 2011 01:35:54 -0700 (PDT)
\r
22 Received: by wyh22 with SMTP id 22so1538012wyh.26
\r
23 for <notmuch@notmuchmail.org>; Thu, 30 Jun 2011 01:35:53 -0700 (PDT)
\r
24 Received: by 10.227.207.15 with SMTP id fw15mr1594447wbb.66.1309422953451;
\r
25 Thu, 30 Jun 2011 01:35:53 -0700 (PDT)
\r
26 Received: from localhost ([109.131.21.173])
\r
27 by mx.google.com with ESMTPS id b13sm1459155wbh.7.2011.06.30.01.35.51
\r
28 (version=TLSv1/SSLv3 cipher=OTHER);
\r
29 Thu, 30 Jun 2011 01:35:52 -0700 (PDT)
\r
30 From: Pieter Praet <pieter@praet.org>
\r
31 To: notmuch@notmuchmail.org
\r
32 Subject: [PATCH] fix breakage in `notmuch-hello-generate-tag-alist' due to
\r
34 Date: Thu, 30 Jun 2011 10:35:46 +0200
\r
35 Message-Id: <1309422946-31424-1-git-send-email-pieter@praet.org>
\r
36 X-Mailer: git-send-email 1.7.4.1
\r
37 In-Reply-To: <1309422029-22924-1-git-send-email-pieter@praet.org>
\r
38 References: <1309422029-22924-1-git-send-email-pieter@praet.org>
\r
39 X-BeenThere: notmuch@notmuchmail.org
\r
40 X-Mailman-Version: 2.1.13
\r
42 List-Id: "Use and development of the notmuch mail system."
\r
43 <notmuch.notmuchmail.org>
\r
44 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
45 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
46 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
47 List-Post: <mailto:notmuch@notmuchmail.org>
\r
48 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
49 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
50 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
51 X-List-Received-Date: Thu, 30 Jun 2011 08:35:55 -0000
\r
53 Even though all tests passed, a previous patch [1] seems to have broken
\r
54 `notmuch-hello-generate-tag-alist', because the latter expects prefix-less tags.
\r
56 This is a quick'n'dirty patch, thus probably not fit for consumption.
\r
59 [1] id:"1309422029-22924-1-git-send-email-pieter@praet.org"
\r
61 Signed-off-by: Pieter Praet <pieter@praet.org>
\r
63 emacs/notmuch-hello.el | 6 ++++--
\r
64 1 files changed, 4 insertions(+), 2 deletions(-)
\r
66 diff --git a/emacs/notmuch-hello.el b/emacs/notmuch-hello.el
\r
67 index 65fde75..4551be1 100644
\r
68 --- a/emacs/notmuch-hello.el
\r
69 +++ b/emacs/notmuch-hello.el
\r
70 @@ -343,6 +343,7 @@ Complete list of currently available key bindings:
\r
71 (notmuch-remove-if-not
\r
73 (mapcar (lambda (tag)
\r
74 + (let ((tag (substring tag 4)))
\r
77 ((functionp notmuch-hello-tag-list-make-query)
\r
78 @@ -351,10 +352,11 @@ Complete list of currently available key bindings:
\r
79 ((stringp notmuch-hello-tag-list-make-query)
\r
80 (concat "tag:" tag " and ("
\r
81 notmuch-hello-tag-list-make-query ")"))
\r
82 - (t (concat "tag:" tag)))))
\r
83 + (t (concat "tag:" tag))))))
\r
84 (notmuch-remove-if-not
\r
86 - (not (member tag notmuch-hello-hide-tags)))
\r
87 + (let ((tag (substring tag 4)))
\r
88 + (not (member tag notmuch-hello-hide-tags))))
\r
89 (process-lines notmuch-command "search-tags")))))
\r