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 34C44431FC2
\r
6 for <notmuch@notmuchmail.org>; Wed, 22 Feb 2012 10:45:57 -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 lNH9Ebpo2pOP for <notmuch@notmuchmail.org>;
\r
16 Wed, 22 Feb 2012 10:45:55 -0800 (PST)
\r
17 Received: from mail-we0-f181.google.com (mail-we0-f181.google.com
\r
18 [74.125.82.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 686B5431FAE
\r
21 for <notmuch@notmuchmail.org>; Wed, 22 Feb 2012 10:45:55 -0800 (PST)
\r
22 Received: by werp13 with SMTP id p13so266664wer.26
\r
23 for <notmuch@notmuchmail.org>; Wed, 22 Feb 2012 10:45:54 -0800 (PST)
\r
24 Received-SPF: pass (google.com: domain of pieter@praet.org designates
\r
25 10.180.80.8 as permitted sender) client-ip=10.180.80.8;
\r
26 Authentication-Results: mr.google.com;
\r
27 spf=pass (google.com: domain of pieter@praet.org
\r
28 designates 10.180.80.8 as permitted sender)
\r
29 smtp.mail=pieter@praet.org
\r
30 Received: from mr.google.com ([10.180.80.8])
\r
31 by 10.180.80.8 with SMTP id n8mr38112571wix.14.1329936354277 (num_hops
\r
32 = 1); Wed, 22 Feb 2012 10:45:54 -0800 (PST)
\r
34 Received: by 10.180.80.8 with SMTP id n8mr31571953wix.14.1329936354098;
\r
35 Wed, 22 Feb 2012 10:45:54 -0800 (PST)
\r
36 Received: from localhost ([109.131.181.26])
\r
37 by mx.google.com with ESMTPS id s8sm30939325wiz.8.2012.02.22.10.45.53
\r
38 (version=TLSv1/SSLv3 cipher=OTHER);
\r
39 Wed, 22 Feb 2012 10:45:53 -0800 (PST)
\r
40 From: Pieter Praet <pieter@praet.org>
\r
41 To: Notmuch Mail <notmuch@notmuchmail.org>
\r
42 Subject: [PATCH v2 2/7] test: emacs: new tests "notmuch-show: {,
\r
43 un}collapse all messages in thread"
\r
44 Date: Wed, 22 Feb 2012 19:43:29 +0100
\r
45 Message-Id: <1329936214-30959-2-git-send-email-pieter@praet.org>
\r
46 X-Mailer: git-send-email 1.7.8.1
\r
47 In-Reply-To: <1327469139-1968-1-git-send-email-pieter@praet.org>
\r
48 References: <1327469139-1968-1-git-send-email-pieter@praet.org>
\r
50 ALoCoQn6bfw2D7L8ZNJps5hTyWtLQEnVAm/l3aj9lUsrD86sCT1y+SpmE1T4GwfJQUlteNYTzUCx
\r
51 X-BeenThere: notmuch@notmuchmail.org
\r
52 X-Mailman-Version: 2.1.13
\r
54 List-Id: "Use and development of the notmuch mail system."
\r
55 <notmuch.notmuchmail.org>
\r
56 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
57 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
58 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
59 List-Post: <mailto:notmuch@notmuchmail.org>
\r
60 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
61 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
62 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
63 X-List-Received-Date: Wed, 22 Feb 2012 18:45:57 -0000
\r
67 - New subtest "notmuch-show: collapse all messages in thread":
\r
68 `notmuch-show-open-or-close-all' with prefix arg ("C-u M-RET")
\r
69 collapses all messages in thread.
\r
71 - New subtest "notmuch-show: uncollapse all messages in thread":
\r
72 `notmuch-show-open-or-close-all' without prefix arg ("M-RET")
\r
73 uncollapses all messages in thread.
\r
76 ...notmuch-show-thread-with-all-messages-collapsed | 4 +
\r
77 ...tmuch-show-thread-with-all-messages-uncollapsed | 79 ++++++++++++++++++++
\r
78 3 files changed, 96 insertions(+), 0 deletions(-)
\r
79 create mode 100644 test/emacs.expected-output/notmuch-show-thread-with-all-messages-collapsed
\r
80 create mode 100644 test/emacs.expected-output/notmuch-show-thread-with-all-messages-uncollapsed
\r
82 diff --git a/test/emacs b/test/emacs
\r
83 index f9ea1c3..7d6e6ee 100755
\r
86 @@ -408,6 +408,19 @@ test_emacs \
\r
87 (test-visible-output))'
\r
88 test_expect_equal_file OUTPUT $EXPECTED/notmuch-show-message-with-headers-hidden
\r
90 +test_begin_subtest "notmuch-show: collapse all messages in thread"
\r
91 +test_emacs '(notmuch-show "id:f35dbb950911171435ieecd458o853c873e35f4be95@mail.gmail.com")
\r
92 + (let ((current-prefix-arg t))
\r
93 + (notmuch-show-open-or-close-all)
\r
94 + (test-visible-output))'
\r
95 +test_expect_equal_file OUTPUT $EXPECTED/notmuch-show-thread-with-all-messages-collapsed
\r
97 +test_begin_subtest "notmuch-show: uncollapse all messages in thread"
\r
98 +test_emacs '(notmuch-show "id:f35dbb950911171435ieecd458o853c873e35f4be95@mail.gmail.com")
\r
99 + (notmuch-show-open-or-close-all)
\r
100 + (test-visible-output)'
\r
101 +test_expect_equal_file OUTPUT $EXPECTED/notmuch-show-thread-with-all-messages-uncollapsed
\r
103 test_begin_subtest "Stashing in notmuch-show"
\r
104 add_message '[date]="Sat, 01 Jan 2000 12:00:00 -0000"' \
\r
105 '[from]="Some One <someone@somewhere.org>"' \
\r
106 diff --git a/test/emacs.expected-output/notmuch-show-thread-with-all-messages-collapsed b/test/emacs.expected-output/notmuch-show-thread-with-all-messages-collapsed
\r
107 new file mode 100644
\r
108 index 0000000..73b0e60
\r
110 +++ b/test/emacs.expected-output/notmuch-show-thread-with-all-messages-collapsed
\r
112 +Jan Janak <jan@ryngle.com> (2009-11-17) (inbox)
\r
113 +Subject: [notmuch] What a great idea!
\r
114 + Jan Janak <jan@ryngle.com> (2009-11-17) (inbox)
\r
115 + Carl Worth <cworth@cworth.org> (2009-11-18) (inbox unread)
\r
116 diff --git a/test/emacs.expected-output/notmuch-show-thread-with-all-messages-uncollapsed b/test/emacs.expected-output/notmuch-show-thread-with-all-messages-uncollapsed
\r
117 new file mode 100644
\r
118 index 0000000..bd5598e
\r
120 +++ b/test/emacs.expected-output/notmuch-show-thread-with-all-messages-uncollapsed
\r
122 +Jan Janak <jan@ryngle.com> (2009-11-17) (inbox)
\r
123 +Subject: [notmuch] What a great idea!
\r
124 +To: notmuch@notmuchmail.org
\r
125 +Date: Tue, 17 Nov 2009 23:35:30 +0100
\r
129 +First of all, notmuch is a wonderful idea, both the cmdline tool and
\r
130 +the emacs interface! Thanks a lot for writing it, I was really excited
\r
131 +when I read the announcement today.
\r
133 +Have you considered sending an announcement to the org-mode mailing list?
\r
134 +http://org-mode.org
\r
136 +Various ways of searching/referencing emails from emacs were discussed
\r
137 +there several times and none of them were as elegant as notmuch (not
\r
138 +even close). Maybe notmuch would attract some of the developers
\r
142 + Jan Janak <jan@ryngle.com> (2009-11-17) (inbox)
\r
143 + Subject: [notmuch] What a great idea!
\r
144 + To: notmuch@notmuchmail.org
\r
145 + Date: Tue, 17 Nov 2009 23:38:47 +0100
\r
147 + On Tue, Nov 17, 2009 at 11:35 PM, Jan Janak <jan at ryngle.com> wrote:
\r
150 + > First of all, notmuch is a wonderful idea, both the cmdline tool and
\r
151 + [ 2 more citation lines. Click/Enter to show. ]
\r
153 + > Have you considered sending an announcement to the org-mode mailing list?
\r
154 + > http://org-mode.org
\r
156 + Sorry, wrong URL, the correct one is: http://orgmode.org
\r
158 + > Various ways of searching/referencing emails from emacs were discussed
\r
159 + > there several times and none of them were as elegant as notmuch (not
\r
160 + > even close). Maybe notmuch would attract some of the developers
\r
164 + Carl Worth <cworth@cworth.org> (2009-11-18) (inbox unread)
\r
165 + Subject: [notmuch] What a great idea!
\r
166 + To: notmuch@notmuchmail.org
\r
167 + Date: Wed, 18 Nov 2009 02:49:52 -0800
\r
169 + On Tue, 17 Nov 2009 23:35:30 +0100, Jan Janak <jan at ryngle.com> wrote:
\r
170 + > First of all, notmuch is a wonderful idea, both the cmdline tool and
\r
171 + > the emacs interface! Thanks a lot for writing it, I was really excited
\r
172 + > when I read the announcement today.
\r
174 + Ah, here's where I planned a nice welcome. So welcome (again), Jan! :-)
\r
176 + I've been having a lot of fun with notmuch already, (though there have
\r
177 + been some days of pain before it was functional enough and my
\r
178 + email-reply latency went way up). But regardless---I got through that,
\r
179 + and I'm able to work more efficiently with notmuch now than I could with
\r
180 + sup before. So I'm happy.
\r
182 + And I'm delighted when other people find this interesting as well.
\r
184 + > Have you considered sending an announcement to the org-mode mailing list?
\r
185 + > http://orgmode.org
\r
187 + Thanks for the idea. I think I may have looked into org-mode years ago,
\r
188 + (when I was investigating planner-mode and various emacs "personal wiki"
\r
189 + systems for keeping random notes and what-not).
\r
191 + > Various ways of searching/referencing emails from emacs were discussed
\r
192 + > there several times and none of them were as elegant as notmuch (not
\r
193 + > even close). Maybe notmuch would attract some of the developers
\r
196 + Yeah. I'll drop them a mail. Having a real emacs wizard on board would
\r
197 + be nice. (I'm afraid the elisp I've written so far for this project is
\r