From: Jameson Graef Rollins Date: Mon, 2 Apr 2012 08:20:53 +0000 (+1700) Subject: [PATCH 6/6] emacs: include tags from excluded messages in tag tab completion X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=44e0626e4f617864f19d7e41d31d28ff0316e228;p=notmuch-archives.git [PATCH 6/6] emacs: include tags from excluded messages in tag tab completion --- diff --git a/bd/4a851d1a91bab0694a7cdf2f6781548d639bbb b/bd/4a851d1a91bab0694a7cdf2f6781548d639bbb new file mode 100644 index 000000000..51195dc42 --- /dev/null +++ b/bd/4a851d1a91bab0694a7cdf2f6781548d639bbb @@ -0,0 +1,82 @@ +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 7AA19431FD6 + for ; Mon, 2 Apr 2012 01:21:00 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: -2.3 +X-Spam-Level: +X-Spam-Status: No, score=-2.3 tagged_above=-999 required=5 + tests=[RCVD_IN_DNSWL_MED=-2.3] 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 I-bRZiVWCHsH for ; + Mon, 2 Apr 2012 01:21:00 -0700 (PDT) +Received: from outgoing-mail.its.caltech.edu (outgoing-mail.its.caltech.edu + [131.215.239.19]) + by olra.theworths.org (Postfix) with ESMTP id 23CD6431FC2 + for ; Mon, 2 Apr 2012 01:21:00 -0700 (PDT) +Received: from fire-doxen.imss.caltech.edu (localhost [127.0.0.1]) + by fire-doxen-postvirus (Postfix) with ESMTP id E07882E50C1E + for ; Mon, 2 Apr 2012 01:20:59 -0700 (PDT) +X-Spam-Scanned: at Caltech-IMSS on fire-doxen by amavisd-new +Received: from finestructure.net (unknown [76.89.193.65]) + (Authenticated sender: jrollins) + by fire-doxen-submit (Postfix) with ESMTP id 3D8352E509DC + for ; Mon, 2 Apr 2012 01:20:58 -0700 (PDT) +Received: by finestructure.net (Postfix, from userid 1000) + id 9E7EF19EA; Mon, 2 Apr 2012 01:20:56 -0700 (PDT) +From: Jameson Graef Rollins +To: Notmuch Mail +Subject: [PATCH 6/6] emacs: include tags from excluded messages in tag tab + completion +Date: Mon, 2 Apr 2012 01:20:53 -0700 +Message-Id: <1333354853-25729-7-git-send-email-jrollins@finestructure.net> +X-Mailer: git-send-email 1.7.9.1 +In-Reply-To: <1333354853-25729-6-git-send-email-jrollins@finestructure.net> +References: <1333354853-25729-1-git-send-email-jrollins@finestructure.net> + <1333354853-25729-2-git-send-email-jrollins@finestructure.net> + <1333354853-25729-3-git-send-email-jrollins@finestructure.net> + <1333354853-25729-4-git-send-email-jrollins@finestructure.net> + <1333354853-25729-5-git-send-email-jrollins@finestructure.net> + <1333354853-25729-6-git-send-email-jrollins@finestructure.net> +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: Mon, 02 Apr 2012 08:21:00 -0000 + +The new message exclude functionality will hide tags that only exist +on excluded messages. However, one might very well want to manually +modify excluded tags. This makes sure tags from excluded messages are +always available in tab completion. +--- + emacs/notmuch.el | 2 +- + 1 files changed, 1 insertions(+), 1 deletions(-) + +diff --git a/emacs/notmuch.el b/emacs/notmuch.el +index 19423ea..7cba496 100644 +--- a/emacs/notmuch.el ++++ b/emacs/notmuch.el +@@ -91,7 +91,7 @@ For example: + (with-output-to-string + (with-current-buffer standard-output + (apply 'call-process notmuch-command nil t +- nil "search" "--output=tags" search-terms))) ++ nil "search" "--output=tags" "--exclude=false" search-terms))) + "\n+" t)) + + (defun notmuch-select-tag-with-completion (prompt &rest search-terms) +-- +1.7.9.1 +