From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 3EE2B429E26 for ; Thu, 24 Nov 2011 14:05:29 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 0.001 X-Spam-Level: X-Spam-Status: No, score=0.001 tagged_above=-999 required=5 tests=[FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id CDaIuNDw2krg for ; Thu, 24 Nov 2011 14:05:28 -0800 (PST) Received: from mailout-de.gmx.net (mailout-de.gmx.net [213.165.64.22]) by olra.theworths.org (Postfix) with SMTP id 3D206431FB6 for ; Thu, 24 Nov 2011 14:05:28 -0800 (PST) Received: (qmail invoked by alias); 24 Nov 2011 22:05:26 -0000 Received: from p54BE4A18.dip.t-dialin.net (EHLO shi.workgroup) [84.190.74.24] by mail.gmx.net (mp004) with SMTP; 24 Nov 2011 23:05:26 +0100 X-Authenticated: #19296480 X-Provags-ID: V01U2FsdGVkX1/9+wNNPZD9x/fHTx/qbOgbElKXVq6pzdGZ1O21hj S5XOp/KYVmjwGn Received: from grfz by shi.workgroup with local (Exim 4.77) (envelope-from ) id 1RThOw-0001w2-Pp; Thu, 24 Nov 2011 23:04:14 +0100 From: Gregor Zattler To: notmuch@notmuchmail.org Subject: [PATCH 2/4] emacs: test notmuch-indent-messages-width default Date: Thu, 24 Nov 2011 23:03:22 +0100 Message-Id: <1322172204-6677-3-git-send-email-telegraph@gmx.net> X-Mailer: git-send-email 1.7.7.3 In-Reply-To: <1322172204-6677-1-git-send-email-telegraph@gmx.net> References: <87d3ch8xz1.fsf@zancas.localnet> <1322172204-6677-1-git-send-email-telegraph@gmx.net> X-Y-GMX-Trusted: 0 X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Nov 2011 22:05:29 -0000 Previous behaviour was to indent messages in a thread according to depth by one space per level. This is still the case with notmuch-indent-messages-width default value `1'. This test succeeds if output with default value is same as in "Basic notmuch-show view in emacs". --- test/emacs | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/test/emacs b/test/emacs index 3bf2e29..20d52d8 100755 --- a/test/emacs +++ b/test/emacs @@ -50,6 +50,13 @@ test_emacs "(notmuch-show \"$maildir_storage_thread\") (test-output)" test_expect_equal_file OUTPUT $EXPECTED/notmuch-show-thread-maildir-storage +test_begin_subtest "Basic notmuch-show view in emacs default indentation" +maildir_storage_thread=$(notmuch search --output=threads id:20091117190054.GU3165@dottiness.seas.harvard.edu) +test_emacs "(let ((notmuch-indent-messages-width 1)) + (notmuch-show \"$maildir_storage_thread\") + (test-output))" +test_expect_equal_file OUTPUT $EXPECTED/notmuch-show-thread-maildir-storage + test_begin_subtest "notmuch-show for message with invalid From" add_message "[subject]=\"message-with-invalid-from\"" \ "[from]=\"\\\"Invalid \\\" From\\\" \"" -- 1.7.7.3