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 EB18641ED86
\r
6 for <notmuch@notmuchmail.org>; Thu, 30 Jun 2011 01:36:34 -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 pKY9RSxYsG8r for <notmuch@notmuchmail.org>;
\r
16 Thu, 30 Jun 2011 01:36:34 -0700 (PDT)
\r
17 Received: from mail-ww0-f45.google.com (mail-ww0-f45.google.com
\r
18 [74.125.82.45]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client
\r
19 certificate requested) by olra.theworths.org (Postfix) with ESMTPS id
\r
20 19BE942119F for <notmuch@notmuchmail.org>; Thu, 30 Jun 2011 01:36:33 -0700
\r
22 Received: by wwj40 with SMTP id 40so1635945wwj.2
\r
23 for <notmuch@notmuchmail.org>; Thu, 30 Jun 2011 01:36:32 -0700 (PDT)
\r
24 Received: by 10.216.68.140 with SMTP id l12mr1481956wed.79.1309422992801;
\r
25 Thu, 30 Jun 2011 01:36:32 -0700 (PDT)
\r
26 Received: from localhost ([109.131.21.173])
\r
27 by mx.google.com with ESMTPS id n21sm1001331wed.43.2011.06.30.01.36.31
\r
28 (version=TLSv1/SSLv3 cipher=OTHER);
\r
29 Thu, 30 Jun 2011 01:36:32 -0700 (PDT)
\r
30 From: Pieter Praet <pieter@praet.org>
\r
31 To: notmuch@notmuchmail.org
\r
32 Subject: [PATCH] fix breakage in `notmuch-select-tag-with-completion' due to
\r
34 Date: Thu, 30 Jun 2011 10:36:27 +0200
\r
35 Message-Id: <1309422987-31533-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:36:35 -0000
\r
53 Even though all tests passed, a previous patch [1] seems to have broken
\r
54 `notmuch-select-tag-with-completion', 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.el | 6 +++++-
\r
64 1 files changed, 5 insertions(+), 1 deletions(-)
\r
66 diff --git a/emacs/notmuch.el b/emacs/notmuch.el
\r
67 index f11ec24..af66510 100644
\r
68 --- a/emacs/notmuch.el
\r
69 +++ b/emacs/notmuch.el
\r
70 @@ -77,7 +77,11 @@ For example:
\r
71 (with-output-to-string
\r
72 (with-current-buffer standard-output
\r
73 (apply 'call-process notmuch-command nil t nil "search-tags" search-terms)))))
\r
74 - (completing-read prompt (split-string tag-list "\n+" t) nil nil nil)))
\r
75 + (completing-read prompt
\r
76 + (mapcar (lambda (tag)
\r
77 + (substring tag 4))
\r
78 + (split-string tag-list "\n+" t))
\r
81 (defun notmuch-foreach-mime-part (function mm-handle)
\r
82 (cond ((stringp (car mm-handle))
\r