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