From: David Edmondson Date: Thu, 2 Feb 2012 11:23:53 +0000 (+0000) Subject: [PATCH v6 8/8] emacs: A prefix argument to `notmuch-show' should invert the matching... X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=cba9d3bc2b2de7bda783beaa906dc5c452abfa61;p=notmuch-archives.git [PATCH v6 8/8] emacs: A prefix argument to `notmuch-show' should invert the matching message behaviour. --- diff --git a/d1/6a48ed8373b25116903ec9bbf35bc3b19b3c69 b/d1/6a48ed8373b25116903ec9bbf35bc3b19b3c69 new file mode 100644 index 000000000..141c4d615 --- /dev/null +++ b/d1/6a48ed8373b25116903ec9bbf35bc3b19b3c69 @@ -0,0 +1,83 @@ +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 EE293431FAF + for ; Thu, 2 Feb 2012 03:24:04 -0800 (PST) +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 7Rd9Evglb0pI for ; + Thu, 2 Feb 2012 03:24:04 -0800 (PST) +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 + 338BC431FAE for ; Thu, 2 Feb 2012 03:24:04 -0800 + (PST) +Received: by wgbdt12 with SMTP id dt12so2114493wgb.2 + for ; Thu, 02 Feb 2012 03:24:03 -0800 (PST) +Received: by 10.180.80.8 with SMTP id n8mr3881944wix.14.1328181842954; + Thu, 02 Feb 2012 03:24:02 -0800 (PST) +Received: from hotblack-desiato.hh.sledj.net + (host81-149-164-25.in-addr.btopenworld.com. [81.149.164.25]) + by mx.google.com with ESMTPS id q7sm50954510wix.5.2012.02.02.03.23.59 + (version=TLSv1/SSLv3 cipher=OTHER); + Thu, 02 Feb 2012 03:24:00 -0800 (PST) +Received: by hotblack-desiato.hh.sledj.net (Postfix, from userid 30000) + id AE2A9A0C3F; Thu, 2 Feb 2012 11:23:54 +0000 (GMT) +From: David Edmondson +To: notmuch@notmuchmail.org +Subject: [PATCH v6 8/8] emacs: A prefix argument to `notmuch-show' should + invert the matching message behaviour. +Date: Thu, 2 Feb 2012 11:23:53 +0000 +Message-Id: <1328181833-14988-9-git-send-email-dme@dme.org> +X-Mailer: git-send-email 1.7.8.3 +In-Reply-To: <1328181833-14988-1-git-send-email-dme@dme.org> +References: <1327486729-18052-1-git-send-email-dme@dme.org> + <1328181833-14988-1-git-send-email-dme@dme.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, 02 Feb 2012 11:24:05 -0000 + +Allow the user to open a thread with inverted +`notmuch-show-only-matching-messages' behaviour using a prefix +argument. +--- + emacs/notmuch-show.el | 5 ++++- + 1 files changed, 4 insertions(+), 1 deletions(-) + +diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el +index ae7af02..e9aa4e7 100644 +--- a/emacs/notmuch-show.el ++++ b/emacs/notmuch-show.el +@@ -1024,8 +1024,11 @@ function is used." + ;; buffer. + (setq notmuch-show-process-crypto notmuch-crypto-process-mime) + ;; Set the default value for +- ;; `notmuch-show-elide-non-matching-messages' in this buffer. ++ ;; `notmuch-show-elide-non-matching-messages' in this buffer. If ++ ;; there is a prefix argument, invert the default. + (setq notmuch-show-elide-non-matching-messages notmuch-show-only-matching-messages) ++ (if current-prefix-arg ++ (setq notmuch-show-elide-non-matching-messages (not notmuch-show-elide-non-matching-messages))) + + (setq notmuch-show-thread-id thread-id + notmuch-show-parent-buffer parent-buffer +-- +1.7.8.3 +