Re: [PATCH] emacs: wash: make word-wrap bound message width
[notmuch-archives.git] / 1a / 34a559912640a9d9abb0abba51161d925e0492
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 36274431FB6\r
6         for <notmuch@notmuchmail.org>; Mon,  6 Feb 2012 01:21:45 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -0.7\r
10 X-Spam-Level: \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 8mQxdaWLErzC for <notmuch@notmuchmail.org>;\r
16         Mon,  6 Feb 2012 01:21:44 -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 14A51431FCF\r
21         for <notmuch@notmuchmail.org>; Mon,  6 Feb 2012 01:21:31 -0800 (PST)\r
22 Received: by mail-wi0-f181.google.com with SMTP id hi8so4643235wib.26\r
23         for <notmuch@notmuchmail.org>; Mon, 06 Feb 2012 01:21:31 -0800 (PST)\r
24 MIME-Version: 1.0\r
25 Received: by 10.180.83.104 with SMTP id p8mr11790379wiy.4.1328520091747;\r
26         Mon, 06 Feb 2012 01:21:31 -0800 (PST)\r
27 Received: from hotblack-desiato.hh.sledj.net\r
28         (host81-149-164-25.in-addr.btopenworld.com. [81.149.164.25])\r
29         by mx.google.com with ESMTPS id ex2sm44666484wib.1.2012.02.06.01.21.29\r
30         (version=TLSv1/SSLv3 cipher=OTHER);\r
31         Mon, 06 Feb 2012 01:21:30 -0800 (PST)\r
32 Received: by hotblack-desiato.hh.sledj.net (Postfix, from userid 30000)\r
33         id 30443A0F0D; Mon,  6 Feb 2012 09:21:24 +0000 (GMT)\r
34 From: David Edmondson <dme@dme.org>\r
35 To: notmuch@notmuchmail.org\r
36 Subject: [PATCH v7 7/8] emacs: Add `notmuch-show-only-matching-messages'.\r
37 Date: Mon,  6 Feb 2012 09:21:21 +0000\r
38 Message-Id: <1328520082-26659-8-git-send-email-dme@dme.org>\r
39 X-Mailer: git-send-email 1.7.8.3\r
40 In-Reply-To: <1328520082-26659-1-git-send-email-dme@dme.org>\r
41 References: <1327486729-18052-1-git-send-email-dme@dme.org>\r
42         <1328520082-26659-1-git-send-email-dme@dme.org>\r
43 X-Gm-Message-State:\r
44  ALoCoQmuwL4rY3he0/Ub6ygzP2mQd/mf1RpAD3D9q0H/ZQteESVf/2jMl9cB6TlZjolVFlDhQmz9\r
45 X-BeenThere: notmuch@notmuchmail.org\r
46 X-Mailman-Version: 2.1.13\r
47 Precedence: list\r
48 List-Id: "Use and development of the notmuch mail system."\r
49         <notmuch.notmuchmail.org>\r
50 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
51         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
52 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
53 List-Post: <mailto:notmuch@notmuchmail.org>\r
54 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
55 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
56         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
57 X-List-Received-Date: Mon, 06 Feb 2012 09:21:45 -0000\r
58 \r
59 Allow the user to choose that only matching messages are shown by\r
60 default.\r
61 ---\r
62  emacs/notmuch-show.el |    8 ++++++++\r
63  1 files changed, 8 insertions(+), 0 deletions(-)\r
64 \r
65 diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el\r
66 index ec36767..8c24f38 100644\r
67 --- a/emacs/notmuch-show.el\r
68 +++ b/emacs/notmuch-show.el\r
69 @@ -125,6 +125,11 @@ indentation."\r
70                  (const :tag "View interactively"\r
71                         notmuch-show-interactively-view-part)))\r
72  \r
73 +(defcustom notmuch-show-only-matching-messages nil\r
74 +  "Only matching messages are shown by default."\r
75 +  :type 'boolean\r
76 +  :group 'notmuch-show)\r
77 +\r
78  (defvar notmuch-show-thread-id nil)\r
79  (make-variable-buffer-local 'notmuch-show-thread-id)\r
80  (put 'notmuch-show-thread-id 'permanent-local t)\r
81 @@ -1028,6 +1033,9 @@ function is used."\r
82      ;; Set the default value for `notmuch-show-process-crypto' in this\r
83      ;; buffer.\r
84      (setq notmuch-show-process-crypto notmuch-crypto-process-mime)\r
85 +    ;; Set the default value for\r
86 +    ;; `notmuch-show-elide-non-matching-messages' in this buffer.\r
87 +    (setq notmuch-show-elide-non-matching-messages notmuch-show-only-matching-messages)\r
88  \r
89      (setq notmuch-show-thread-id thread-id\r
90           notmuch-show-parent-buffer parent-buffer\r
91 -- \r
92 1.7.8.3\r
93 \r