Re: [PATCH] emacs: wash: make word-wrap bound message width
[notmuch-archives.git] / 40 / 1b56c467309fd0c80d767bfdf58e30f998d07a
1 Return-Path: <error4me@gmx.de>\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 3EE2B429E26\r
6         for <notmuch@notmuchmail.org>; Thu, 24 Nov 2011 14:05:29 -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.001\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=0.001 tagged_above=-999 required=5\r
12         tests=[FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001]\r
13         autolearn=disabled\r
14 Received: from olra.theworths.org ([127.0.0.1])\r
15         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
16         with ESMTP id CDaIuNDw2krg for <notmuch@notmuchmail.org>;\r
17         Thu, 24 Nov 2011 14:05:28 -0800 (PST)\r
18 Received: from mailout-de.gmx.net (mailout-de.gmx.net [213.165.64.22])\r
19         by olra.theworths.org (Postfix) with SMTP id 3D206431FB6\r
20         for <notmuch@notmuchmail.org>; Thu, 24 Nov 2011 14:05:28 -0800 (PST)\r
21 Received: (qmail invoked by alias); 24 Nov 2011 22:05:26 -0000\r
22 Received: from p54BE4A18.dip.t-dialin.net (EHLO shi.workgroup) [84.190.74.24]\r
23         by mail.gmx.net (mp004) with SMTP; 24 Nov 2011 23:05:26 +0100\r
24 X-Authenticated: #19296480\r
25 X-Provags-ID: V01U2FsdGVkX1/9+wNNPZD9x/fHTx/qbOgbElKXVq6pzdGZ1O21hj\r
26         S5XOp/KYVmjwGn\r
27 Received: from grfz by shi.workgroup with local (Exim 4.77)\r
28         (envelope-from <error4me@gmx.de>)\r
29         id 1RThOw-0001w2-Pp; Thu, 24 Nov 2011 23:04:14 +0100\r
30 From: Gregor Zattler <telegraph@gmx.net>\r
31 To: notmuch@notmuchmail.org\r
32 Subject: [PATCH 2/4] emacs: test notmuch-indent-messages-width default\r
33 Date: Thu, 24 Nov 2011 23:03:22 +0100\r
34 Message-Id: <1322172204-6677-3-git-send-email-telegraph@gmx.net>\r
35 X-Mailer: git-send-email 1.7.7.3\r
36 In-Reply-To: <1322172204-6677-1-git-send-email-telegraph@gmx.net>\r
37 References: <87d3ch8xz1.fsf@zancas.localnet>\r
38         <1322172204-6677-1-git-send-email-telegraph@gmx.net>\r
39 X-Y-GMX-Trusted: 0\r
40 X-BeenThere: notmuch@notmuchmail.org\r
41 X-Mailman-Version: 2.1.13\r
42 Precedence: list\r
43 List-Id: "Use and development of the notmuch mail system."\r
44         <notmuch.notmuchmail.org>\r
45 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
46         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
47 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
48 List-Post: <mailto:notmuch@notmuchmail.org>\r
49 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
50 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
51         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
52 X-List-Received-Date: Thu, 24 Nov 2011 22:05:29 -0000\r
53 \r
54 Previous behaviour was to indent messages in a thread according\r
55 to depth by one space per level.  This is still the case with\r
56 notmuch-indent-messages-width default value `1'.  This test\r
57 succeeds if output with default value is same as in "Basic\r
58 notmuch-show view in emacs".\r
59 ---\r
60  test/emacs |    7 +++++++\r
61  1 files changed, 7 insertions(+), 0 deletions(-)\r
62 \r
63 diff --git a/test/emacs b/test/emacs\r
64 index 3bf2e29..20d52d8 100755\r
65 --- a/test/emacs\r
66 +++ b/test/emacs\r
67 @@ -50,6 +50,13 @@ test_emacs "(notmuch-show \"$maildir_storage_thread\")\r
68             (test-output)"\r
69  test_expect_equal_file OUTPUT $EXPECTED/notmuch-show-thread-maildir-storage\r
70  \r
71 +test_begin_subtest "Basic notmuch-show view in emacs default indentation"\r
72 +maildir_storage_thread=$(notmuch search --output=threads id:20091117190054.GU3165@dottiness.seas.harvard.edu)\r
73 +test_emacs "(let ((notmuch-indent-messages-width 1))\r
74 +             (notmuch-show \"$maildir_storage_thread\")\r
75 +             (test-output))"\r
76 +test_expect_equal_file OUTPUT $EXPECTED/notmuch-show-thread-maildir-storage\r
77 +\r
78  test_begin_subtest "notmuch-show for message with invalid From"\r
79  add_message "[subject]=\"message-with-invalid-from\"" \\r
80             "[from]=\"\\\"Invalid \\\" From\\\" <test_suite@notmuchmail.org>\""\r
81 -- \r
82 1.7.7.3\r
83 \r