1 Return-Path: <pieter@praet.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 00773431FC3
\r
6 for <notmuch@notmuchmail.org>; Wed, 22 Feb 2012 10:45:58 -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 9wI8j5gdtlv0 for <notmuch@notmuchmail.org>;
\r
16 Wed, 22 Feb 2012 10:45:57 -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 933C4431FBD
\r
21 for <notmuch@notmuchmail.org>; Wed, 22 Feb 2012 10:45:56 -0800 (PST)
\r
22 Received: by wibhi8 with SMTP id hi8so270670wib.26
\r
23 for <notmuch@notmuchmail.org>; Wed, 22 Feb 2012 10:45:55 -0800 (PST)
\r
24 Received-SPF: pass (google.com: domain of pieter@praet.org designates
\r
25 10.216.135.66 as permitted sender) client-ip=10.216.135.66;
\r
26 Authentication-Results: mr.google.com;
\r
27 spf=pass (google.com: domain of pieter@praet.org
\r
28 designates 10.216.135.66 as permitted sender)
\r
29 smtp.mail=pieter@praet.org
\r
30 Received: from mr.google.com ([10.216.135.66])
\r
31 by 10.216.135.66 with SMTP id t44mr9685524wei.52.1329936355506
\r
32 (num_hops = 1); Wed, 22 Feb 2012 10:45:55 -0800 (PST)
\r
33 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
\r
34 d=google.com; s=gamma;
\r
35 h=mime-version:from:to:subject:date:message-id:x-mailer:in-reply-to
\r
36 :references:x-gm-message-state;
\r
37 bh=w2iLCeFp1vWpqgiVlgptFyJpyKu1Em+uaIGTOsYozPI=;
\r
38 b=w6vOfa0RZUpGYEMB5R1vwtaZswoo0h3EnmjRVYKBAbUVCO/zQHpLf7GlPN/QfF6oP2
\r
39 Ud5HEQ7mDUiWddbddmjsoqUQObEQpVYvwT4GmQslqXSWYHaOsL4vfv8tiubdFBl6zU57
\r
40 0olF5jvMIbKl0tCMZvLRVN/N1/nPFt+4N1NfY=
\r
42 Received: by 10.216.135.66 with SMTP id t44mr8033467wei.52.1329936355371;
\r
43 Wed, 22 Feb 2012 10:45:55 -0800 (PST)
\r
44 Received: from localhost ([109.131.181.26])
\r
45 by mx.google.com with ESMTPS id s2sm74866974wix.3.2012.02.22.10.45.54
\r
46 (version=TLSv1/SSLv3 cipher=OTHER);
\r
47 Wed, 22 Feb 2012 10:45:55 -0800 (PST)
\r
48 From: Pieter Praet <pieter@praet.org>
\r
49 To: Notmuch Mail <notmuch@notmuchmail.org>
\r
50 Subject: [PATCH v2 3/7] emacs: rename `notmuch-show-toggle-headers' to
\r
51 `notmuch-show-toggle-visibility-headers'
\r
52 Date: Wed, 22 Feb 2012 19:43:30 +0100
\r
53 Message-Id: <1329936214-30959-3-git-send-email-pieter@praet.org>
\r
54 X-Mailer: git-send-email 1.7.8.1
\r
55 In-Reply-To: <1327469139-1968-1-git-send-email-pieter@praet.org>
\r
56 References: <1327469139-1968-1-git-send-email-pieter@praet.org>
\r
58 ALoCoQm1ZG4cfqBbuyuxj0sxnLVWckQ3Ro1FJrvuYYJAa7MaNCcethKiGaGmcAo+/JUZXNz9/gck
\r
59 X-BeenThere: notmuch@notmuchmail.org
\r
60 X-Mailman-Version: 2.1.13
\r
62 List-Id: "Use and development of the notmuch mail system."
\r
63 <notmuch.notmuchmail.org>
\r
64 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
65 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
66 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
67 List-Post: <mailto:notmuch@notmuchmail.org>
\r
68 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
69 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
70 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
71 X-List-Received-Date: Wed, 22 Feb 2012 18:45:58 -0000
\r
73 * emacs/notmuch-show.el
\r
75 (notmuch-show-toggle-headers):
\r
76 Rename to `notmuch-show-toggle-visibility-headers'.
\r
78 (notmuch-show-mode-map):
\r
79 Update "h" binding wrt renamed `notmuch-show-toggle-headers'.
\r
81 (notmuch-message-headers):
\r
82 Update docstring wrt renamed `notmuch-show-toggle-headers'.
\r
84 (notmuch-message-headers-visible):
\r
85 Update docstring wrt renamed `notmuch-show-toggle-headers'.
\r
86 Also fixed a small typo.
\r
90 Update subtest wrt renamed `notmuch-show-toggle-headers':
\r
91 - "notmuch-show: hide message headers (w/ notmuch-show-toggle-headers)"
\r
93 emacs/notmuch-show.el | 12 ++++++------
\r
95 2 files changed, 8 insertions(+), 8 deletions(-)
\r
97 diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el
\r
98 index aa9ccee..861018d 100644
\r
99 --- a/emacs/notmuch-show.el
\r
100 +++ b/emacs/notmuch-show.el
\r
101 @@ -48,8 +48,8 @@ (defcustom notmuch-message-headers '("Subject" "To" "Cc" "Date")
\r
103 For an open message, all of these headers will be made visible
\r
104 according to `notmuch-message-headers-visible' or can be toggled
\r
105 -with `notmuch-show-toggle-headers'. For a closed message, only
\r
106 -the first header in the list will be visible."
\r
107 +with `notmuch-show-toggle-visibility-headers'. For a closed message,
\r
108 +only the first header in the list will be visible."
\r
109 :type '(repeat string)
\r
110 :group 'notmuch-show)
\r
112 @@ -59,8 +59,8 @@ (defcustom notmuch-message-headers-visible t
\r
113 If this value is non-nil, then all of the headers defined in
\r
114 `notmuch-message-headers' will be visible by default in the display
\r
115 of each message. Otherwise, these headers will be hidden and
\r
116 -`notmuch-show-toggle-headers' can be used to make the visible for
\r
117 -any given message."
\r
118 +`notmuch-show-toggle-visibility-headers' can be used to make them
\r
119 +visible for any given message."
\r
121 :group 'notmuch-show)
\r
123 @@ -1168,7 +1168,7 @@ (defvar notmuch-show-mode-map
\r
124 (define-key map "v" 'notmuch-show-view-all-mime-parts)
\r
125 (define-key map "c" 'notmuch-show-stash-map)
\r
126 (define-key map "=" 'notmuch-show-refresh-view)
\r
127 - (define-key map "h" 'notmuch-show-toggle-headers)
\r
128 + (define-key map "h" 'notmuch-show-toggle-visibility-headers)
\r
129 (define-key map "*" 'notmuch-show-tag-all)
\r
130 (define-key map "-" 'notmuch-show-remove-tag)
\r
131 (define-key map "+" 'notmuch-show-add-tag)
\r
132 @@ -1650,7 +1650,7 @@ (defun notmuch-show-remove-tag ()
\r
134 (notmuch-show-tag "-"))
\r
136 -(defun notmuch-show-toggle-headers ()
\r
137 +(defun notmuch-show-toggle-visibility-headers ()
\r
138 "Toggle the visibility of the current message headers."
\r
140 (let ((props (notmuch-show-get-message-properties)))
\r
141 diff --git a/test/emacs b/test/emacs
\r
142 index 7d6e6ee..f17efbd 100755
\r
145 @@ -399,12 +399,12 @@ test_emacs \
\r
146 (test-visible-output))'
\r
147 test_expect_equal_file OUTPUT $EXPECTED/notmuch-show-message-with-headers-hidden
\r
149 -test_begin_subtest "notmuch-show: hide message headers (w/ notmuch-show-toggle-headers)"
\r
150 +test_begin_subtest "notmuch-show: hide message headers (w/ notmuch-show-toggle-visibility-headers)"
\r
152 '(let ((notmuch-message-headers '\''("Subject" "To" "Cc" "Date"))
\r
153 (notmuch-message-headers-visible t))
\r
154 (notmuch-show "id:f35dbb950911171438k5df6eb56k77b6c0944e2e79ae@mail.gmail.com")
\r
155 - (notmuch-show-toggle-headers)
\r
156 + (notmuch-show-toggle-visibility-headers)
\r
157 (test-visible-output))'
\r
158 test_expect_equal_file OUTPUT $EXPECTED/notmuch-show-message-with-headers-hidden
\r