1 Return-Path: <dme@dme.org>
\r
2 X-Original-To: notmuch@notmuchmail.org
\r
3 Delivered-To: notmuch@notmuchmail.org
\r
4 Received: from localhost (localhost [127.0.0.1])
\r
5 by olra.theworths.org (Postfix) with ESMTP id 98E8A431FD5
\r
6 for <notmuch@notmuchmail.org>; Wed, 8 Feb 2012 00:02:39 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5
\r
12 tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled
\r
13 Received: from olra.theworths.org ([127.0.0.1])
\r
14 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
15 with ESMTP id Hk7ralRBcsuN for <notmuch@notmuchmail.org>;
\r
16 Wed, 8 Feb 2012 00:02:38 -0800 (PST)
\r
17 Received: from mail-wi0-f181.google.com (mail-wi0-f181.google.com
\r
18 [209.85.212.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits))
\r
19 (No client certificate requested)
\r
20 by olra.theworths.org (Postfix) with ESMTPS id 081DE431FC9
\r
21 for <notmuch@notmuchmail.org>; Wed, 8 Feb 2012 00:02:31 -0800 (PST)
\r
22 Received: by mail-wi0-f181.google.com with SMTP id hi8so201611wib.26
\r
23 for <notmuch@notmuchmail.org>; Wed, 08 Feb 2012 00:02:31 -0800 (PST)
\r
24 Received: by 10.181.11.227 with SMTP id el3mr38961062wid.18.1328688151695;
\r
25 Wed, 08 Feb 2012 00:02:31 -0800 (PST)
\r
26 Received: from hotblack-desiato.hh.sledj.net
\r
27 (host81-149-164-25.in-addr.btopenworld.com. [81.149.164.25])
\r
28 by mx.google.com with ESMTPS id q2sm38005211wiy.7.2012.02.08.00.02.28
\r
29 (version=TLSv1/SSLv3 cipher=OTHER);
\r
30 Wed, 08 Feb 2012 00:02:29 -0800 (PST)
\r
31 Received: by hotblack-desiato.hh.sledj.net (Postfix, from userid 30000)
\r
32 id 52F4DA3808; Wed, 8 Feb 2012 08:02:21 +0000 (GMT)
\r
33 From: David Edmondson <dme@dme.org>
\r
34 To: notmuch@notmuchmail.org
\r
35 Subject: [PATCH v8 7/8] emacs: Add `notmuch-show-only-matching-messages'.
\r
36 Date: Wed, 8 Feb 2012 08:02:18 +0000
\r
37 Message-Id: <1328688139-3865-10-git-send-email-dme@dme.org>
\r
38 X-Mailer: git-send-email 1.7.8.3
\r
39 In-Reply-To: <1328688139-3865-1-git-send-email-dme@dme.org>
\r
40 References: <1327486729-18052-1-git-send-email-dme@dme.org>
\r
41 <1328688139-3865-1-git-send-email-dme@dme.org>
\r
42 X-BeenThere: notmuch@notmuchmail.org
\r
43 X-Mailman-Version: 2.1.13
\r
45 List-Id: "Use and development of the notmuch mail system."
\r
46 <notmuch.notmuchmail.org>
\r
47 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
48 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
49 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
50 List-Post: <mailto:notmuch@notmuchmail.org>
\r
51 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
52 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
53 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
54 X-List-Received-Date: Wed, 08 Feb 2012 08:02:40 -0000
\r
56 Allow the user to choose that only matching messages are shown by
\r
59 emacs/notmuch-show.el | 8 ++++++++
\r
60 1 files changed, 8 insertions(+), 0 deletions(-)
\r
62 diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el
\r
63 index bb46523..d077ae0 100644
\r
64 --- a/emacs/notmuch-show.el
\r
65 +++ b/emacs/notmuch-show.el
\r
66 @@ -125,6 +125,11 @@ indentation."
\r
67 (const :tag "View interactively"
\r
68 notmuch-show-interactively-view-part)))
\r
70 +(defcustom notmuch-show-only-matching-messages nil
\r
71 + "Only matching messages are shown by default."
\r
73 + :group 'notmuch-show)
\r
75 (defvar notmuch-show-thread-id nil)
\r
76 (make-variable-buffer-local 'notmuch-show-thread-id)
\r
77 (put 'notmuch-show-thread-id 'permanent-local t)
\r
78 @@ -1031,6 +1036,9 @@ function is used."
\r
79 ;; Set the default value for `notmuch-show-process-crypto' in this
\r
81 (setq notmuch-show-process-crypto notmuch-crypto-process-mime)
\r
82 + ;; Set the default value for
\r
83 + ;; `notmuch-show-elide-non-matching-messages' in this buffer.
\r
84 + (setq notmuch-show-elide-non-matching-messages notmuch-show-only-matching-messages)
\r
86 (setq notmuch-show-thread-id thread-id
\r
87 notmuch-show-parent-buffer parent-buffer
\r