From 781c172844fc83869dd421a5ca02eb3bf160358a Mon Sep 17 00:00:00 2001 From: David Edmondson Date: Mon, 6 Feb 2012 09:21:22 +0000 Subject: [PATCH] [PATCH v7 8/8] emacs: A prefix argument to `notmuch-show' should invert the matching message behaviour. --- a6/79382c874d092d13fa5c94bb483da322b5191a | 86 +++++++++++++++++++++++ 1 file changed, 86 insertions(+) create mode 100644 a6/79382c874d092d13fa5c94bb483da322b5191a diff --git a/a6/79382c874d092d13fa5c94bb483da322b5191a b/a6/79382c874d092d13fa5c94bb483da322b5191a new file mode 100644 index 000000000..cf9140332 --- /dev/null +++ b/a6/79382c874d092d13fa5c94bb483da322b5191a @@ -0,0 +1,86 @@ +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 79EE7431FB6 + for ; Mon, 6 Feb 2012 01:21:46 -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 3iCly3Rd1pdx for ; + Mon, 6 Feb 2012 01:21:45 -0800 (PST) +Received: from mail-wi0-f181.google.com (mail-wi0-f181.google.com + [209.85.212.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id 3A130431FAF + for ; Mon, 6 Feb 2012 01:21:33 -0800 (PST) +Received: by wibhi8 with SMTP id hi8so4643273wib.26 + for ; Mon, 06 Feb 2012 01:21:32 -0800 (PST) +MIME-Version: 1.0 +Received: by 10.180.109.198 with SMTP id hu6mr11792515wib.16.1328520092081; + Mon, 06 Feb 2012 01:21:32 -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 bj10sm23978485wib.9.2012.02.06.01.21.29 + (version=TLSv1/SSLv3 cipher=OTHER); + Mon, 06 Feb 2012 01:21:30 -0800 (PST) +Received: by hotblack-desiato.hh.sledj.net (Postfix, from userid 30000) + id 32BB1A0F11; Mon, 6 Feb 2012 09:21:24 +0000 (GMT) +From: David Edmondson +To: notmuch@notmuchmail.org +Subject: [PATCH v7 8/8] emacs: A prefix argument to `notmuch-show' should + invert the matching message behaviour. +Date: Mon, 6 Feb 2012 09:21:22 +0000 +Message-Id: <1328520082-26659-9-git-send-email-dme@dme.org> +X-Mailer: git-send-email 1.7.8.3 +In-Reply-To: <1328520082-26659-1-git-send-email-dme@dme.org> +References: <1327486729-18052-1-git-send-email-dme@dme.org> + <1328520082-26659-1-git-send-email-dme@dme.org> +X-Gm-Message-State: + ALoCoQkNiVo5j5BfeAyHo3M4Zw5efCQJrQIK1DP/5e004694+MGAoAeMlZuePgGk63acevk4OCXg +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, 06 Feb 2012 09:21:46 -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 8c24f38..9c1d8fc 100644 +--- a/emacs/notmuch-show.el ++++ b/emacs/notmuch-show.el +@@ -1034,8 +1034,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 + -- 2.26.2