From de0d636aad0193d729812632013c3ab0a9e4b9d1 Mon Sep 17 00:00:00 2001 From: David Edmondson Date: Wed, 8 Feb 2012 08:02:18 +0000 Subject: [PATCH] [PATCH v8 7/8] emacs: Add `notmuch-show-only-matching-messages'. --- 76/1a5d3c7b03f1e84056ae815ee5a569978582f6 | 90 +++++++++++++++++++++++ 1 file changed, 90 insertions(+) create mode 100644 76/1a5d3c7b03f1e84056ae815ee5a569978582f6 diff --git a/76/1a5d3c7b03f1e84056ae815ee5a569978582f6 b/76/1a5d3c7b03f1e84056ae815ee5a569978582f6 new file mode 100644 index 000000000..6c5ed6e6d --- /dev/null +++ b/76/1a5d3c7b03f1e84056ae815ee5a569978582f6 @@ -0,0 +1,90 @@ +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 98E8A431FD5 + for ; Wed, 8 Feb 2012 00:02:39 -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 Hk7ralRBcsuN for ; + Wed, 8 Feb 2012 00:02:38 -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 081DE431FC9 + for ; Wed, 8 Feb 2012 00:02:31 -0800 (PST) +Received: by mail-wi0-f181.google.com with SMTP id hi8so201611wib.26 + for ; Wed, 08 Feb 2012 00:02:31 -0800 (PST) +Received: by 10.181.11.227 with SMTP id el3mr38961062wid.18.1328688151695; + Wed, 08 Feb 2012 00:02:31 -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 q2sm38005211wiy.7.2012.02.08.00.02.28 + (version=TLSv1/SSLv3 cipher=OTHER); + Wed, 08 Feb 2012 00:02:29 -0800 (PST) +Received: by hotblack-desiato.hh.sledj.net (Postfix, from userid 30000) + id 52F4DA3808; Wed, 8 Feb 2012 08:02:21 +0000 (GMT) +From: David Edmondson +To: notmuch@notmuchmail.org +Subject: [PATCH v8 7/8] emacs: Add `notmuch-show-only-matching-messages'. +Date: Wed, 8 Feb 2012 08:02:18 +0000 +Message-Id: <1328688139-3865-10-git-send-email-dme@dme.org> +X-Mailer: git-send-email 1.7.8.3 +In-Reply-To: <1328688139-3865-1-git-send-email-dme@dme.org> +References: <1327486729-18052-1-git-send-email-dme@dme.org> + <1328688139-3865-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: Wed, 08 Feb 2012 08:02:40 -0000 + +Allow the user to choose that only matching messages are shown by +default. +--- + emacs/notmuch-show.el | 8 ++++++++ + 1 files changed, 8 insertions(+), 0 deletions(-) + +diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el +index bb46523..d077ae0 100644 +--- a/emacs/notmuch-show.el ++++ b/emacs/notmuch-show.el +@@ -125,6 +125,11 @@ indentation." + (const :tag "View interactively" + notmuch-show-interactively-view-part))) + ++(defcustom notmuch-show-only-matching-messages nil ++ "Only matching messages are shown by default." ++ :type 'boolean ++ :group 'notmuch-show) ++ + (defvar notmuch-show-thread-id nil) + (make-variable-buffer-local 'notmuch-show-thread-id) + (put 'notmuch-show-thread-id 'permanent-local t) +@@ -1031,6 +1036,9 @@ function is used." + ;; Set the default value for `notmuch-show-process-crypto' in this + ;; buffer. + (setq notmuch-show-process-crypto notmuch-crypto-process-mime) ++ ;; Set the default value for ++ ;; `notmuch-show-elide-non-matching-messages' in this buffer. ++ (setq notmuch-show-elide-non-matching-messages notmuch-show-only-matching-messages) + + (setq notmuch-show-thread-id thread-id + notmuch-show-parent-buffer parent-buffer +-- +1.7.8.3 + -- 2.26.2