Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 5C83A431FD0 for ; Sun, 23 Oct 2011 12:39:12 -0700 (PDT) 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 wdbJcwFaIxqz for ; Sun, 23 Oct 2011 12:39:11 -0700 (PDT) Received: from mailout-de.gmx.net (mailout-de.gmx.net [213.165.64.22]) by olra.theworths.org (Postfix) with SMTP id 7AE1B431FB6 for ; Sun, 23 Oct 2011 12:39:11 -0700 (PDT) Received: (qmail invoked by alias); 23 Oct 2011 19:39:09 -0000 Received: from p54BE2C59.dip.t-dialin.net (EHLO shi.workgroup) [84.190.44.89] by mail.gmx.net (mp008) with SMTP; 23 Oct 2011 21:39:09 +0200 X-Authenticated: #19296480 X-Provags-ID: V01U2FsdGVkX1/+wzcEoMb+5wQc18/iUrANDfodK5CcxKsnieUyiu yz9vkII3IzFzk8 Received: from grfz by shi.workgroup with local (Exim 4.77) (envelope-from ) id 1RI3st-00050j-4U; Sun, 23 Oct 2011 21:39:03 +0200 Date: Sun, 23 Oct 2011 21:38:43 +0200 From: Gregor Zattler To: notmuch Subject: [PATCH 2a/2] emacs: test notmuch-indent-messages-width default Message-ID: <20111023193843.GG21842@shi.workgroup> Mail-Followup-To: notmuch References: <87vcuz2yga.fsf@servo.factory.finestructure.net> <1311028119-50637-1-git-send-email-fgeller@gmail.com> <1311028119-50637-3-git-send-email-fgeller@gmail.com> <20110719105059.GA6472@shi.workgroup> <87wrednlzz.fsf@steelpick.2x.cz> <20111023164324.GC21842@shi.workgroup> <20111023170040.GE21842@shi.workgroup> <20111023190938.GF21842@shi.workgroup> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20111023190938.GF21842@shi.workgroup> User-Agent: Mutt/1.5.21 (2010-09-15) 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: Sun, 23 Oct 2011 19:39:12 -0000 >From e9cbb995c2d51cb3de3baa485e9a6861f6c36b0a Mon Sep 17 00:00:00 2001 From: Gregor Zattler Date: Sun, 23 Oct 2011 21:10:18 +0200 Subject: [PATCH] emacs: test notmuch-indent-messages-width default 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 0303d7d..3571214 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