From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 545B141ED86 for ; Thu, 30 Jun 2011 01:35:55 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.7 X-Spam-Level: X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5 tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id o7k2QVnulyje for ; Thu, 30 Jun 2011 01:35:55 -0700 (PDT) Received: from mail-wy0-f181.google.com (mail-wy0-f181.google.com [74.125.82.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id B74E542119F for ; Thu, 30 Jun 2011 01:35:54 -0700 (PDT) Received: by wyh22 with SMTP id 22so1538012wyh.26 for ; Thu, 30 Jun 2011 01:35:53 -0700 (PDT) Received: by 10.227.207.15 with SMTP id fw15mr1594447wbb.66.1309422953451; Thu, 30 Jun 2011 01:35:53 -0700 (PDT) Received: from localhost ([109.131.21.173]) by mx.google.com with ESMTPS id b13sm1459155wbh.7.2011.06.30.01.35.51 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 30 Jun 2011 01:35:52 -0700 (PDT) From: Pieter Praet To: notmuch@notmuchmail.org Subject: [PATCH] fix breakage in `notmuch-hello-generate-tag-alist' due to `tag:' prefix Date: Thu, 30 Jun 2011 10:35:46 +0200 Message-Id: <1309422946-31424-1-git-send-email-pieter@praet.org> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1309422029-22924-1-git-send-email-pieter@praet.org> References: <1309422029-22924-1-git-send-email-pieter@praet.org> X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Jun 2011 08:35:55 -0000 Even though all tests passed, a previous patch [1] seems to have broken `notmuch-hello-generate-tag-alist', because the latter expects prefix-less tags. This is a quick'n'dirty patch, thus probably not fit for consumption. But it Works(TM). [1] id:"1309422029-22924-1-git-send-email-pieter@praet.org" Signed-off-by: Pieter Praet --- emacs/notmuch-hello.el | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/emacs/notmuch-hello.el b/emacs/notmuch-hello.el index 65fde75..4551be1 100644 --- a/emacs/notmuch-hello.el +++ b/emacs/notmuch-hello.el @@ -343,6 +343,7 @@ Complete list of currently available key bindings: (notmuch-remove-if-not #'cdr (mapcar (lambda (tag) + (let ((tag (substring tag 4))) (cons tag (cond ((functionp notmuch-hello-tag-list-make-query) @@ -351,10 +352,11 @@ Complete list of currently available key bindings: ((stringp notmuch-hello-tag-list-make-query) (concat "tag:" tag " and (" notmuch-hello-tag-list-make-query ")")) - (t (concat "tag:" tag))))) + (t (concat "tag:" tag)))))) (notmuch-remove-if-not (lambda (tag) - (not (member tag notmuch-hello-hide-tags))) + (let ((tag (substring tag 4))) + (not (member tag notmuch-hello-hide-tags)))) (process-lines notmuch-command "search-tags"))))) ;;;###autoload -- 1.7.4.1