[PATCH 2/2] test: emacs-show: fix use of prefix-arg
authorMark Walters <markwalters1009@gmail.com>
Wed, 9 Oct 2013 20:01:26 +0000 (21:01 +0100)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:57:21 +0000 (09:57 -0800)
09/7660a37a164d524daf117608aa6d62d256c9d8 [new file with mode: 0644]

diff --git a/09/7660a37a164d524daf117608aa6d62d256c9d8 b/09/7660a37a164d524daf117608aa6d62d256c9d8
new file mode 100644 (file)
index 0000000..a0ff8d4
--- /dev/null
@@ -0,0 +1,86 @@
+Return-Path: <markwalters1009@gmail.com>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id 1290D431FAF\r
+       for <notmuch@notmuchmail.org>; Wed,  9 Oct 2013 13:01:49 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0.201\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0.201 tagged_above=-999 required=5\r
+       tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
+       FREEMAIL_ENVFROM_END_DIGIT=1, FREEMAIL_FROM=0.001,\r
+       RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id a24GNMOYd06x for <notmuch@notmuchmail.org>;\r
+       Wed,  9 Oct 2013 13:01:41 -0700 (PDT)\r
+Received: from mail-wg0-f43.google.com (mail-wg0-f43.google.com\r
+ [74.125.82.43])       (using TLSv1 with cipher RC4-SHA (128/128 bits))        (No client\r
+ certificate requested)        by olra.theworths.org (Postfix) with ESMTPS id\r
+ 6DBAD431FB6   for <notmuch@notmuchmail.org>; Wed,  9 Oct 2013 13:01:37 -0700\r
+ (PDT)\r
+Received: by mail-wg0-f43.google.com with SMTP id c11so347485wgh.34\r
+       for <notmuch@notmuchmail.org>; Wed, 09 Oct 2013 13:01:34 -0700 (PDT)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;\r
+       h=from:to:cc:subject:date:message-id:in-reply-to:references;\r
+       bh=29e59GFu9B+CcCDNr/Kry2oTa57xiWqPL3OS6gvNjQ8=;\r
+       b=HMBppUra3lBh8zcSJvLOJ+u95vlpRR65c5hUNjyFrBBzC+qskaw/cEaN22/txvGmRy\r
+       kULk/CIO/JzKNiNqIzunbFZl4s1qTGxJXfmreBSJoqswOFBSUZHLYAIdOGuhpExdTyAG\r
+       KKmXWlAN+V4C8B/d6bmzceFVi3r/+ARosaKguV+O69hri5Pa6u2LyF0iNjrOjqgu7PIt\r
+       o/sM9cvTeAVlc+ZW1afn39lkc+4JXFmkhrf8KtkL7rC7O8Pq6PJICKJMPm8RHuPjoYHL\r
+       WgBnEphsKSi96GIDN6WNpXYe11FSGQC8rpf4WbMq8m/oPw32jeWh+uw/8tInKv9IAGo0\r
+       DplQ==\r
+X-Received: by 10.180.73.40 with SMTP id i8mr4219902wiv.37.1381348894825;\r
+       Wed, 09 Oct 2013 13:01:34 -0700 (PDT)\r
+Received: from localhost (93-97-24-31.zone5.bethere.co.uk. [93.97.24.31])\r
+       by mx.google.com with ESMTPSA id c4sm18563932wiz.0.1969.12.31.16.00.00\r
+       (version=TLSv1.2 cipher=RC4-SHA bits=128/128);\r
+       Wed, 09 Oct 2013 13:01:34 -0700 (PDT)\r
+From: Mark Walters <markwalters1009@gmail.com>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH 2/2] test: emacs-show: fix use of prefix-arg\r
+Date: Wed,  9 Oct 2013 21:01:26 +0100\r
+Message-Id: <1381348886-5673-3-git-send-email-markwalters1009@gmail.com>\r
+X-Mailer: git-send-email 1.7.9.1\r
+In-Reply-To: <1381348886-5673-1-git-send-email-markwalters1009@gmail.com>\r
+References: <1381348886-5673-1-git-send-email-markwalters1009@gmail.com>\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Wed, 09 Oct 2013 20:01:49 -0000\r
+\r
+The test for elide-toggle functionality set the prefix arg\r
+directly. Now that show uses the interactive specification just set\r
+the argument directly.\r
+---\r
+ test/emacs-show |    3 +--\r
+ 1 files changed, 1 insertions(+), 2 deletions(-)\r
+\r
+diff --git a/test/emacs-show b/test/emacs-show\r
+index ae70053..fb23db4 100755\r
+--- a/test/emacs-show\r
++++ b/test/emacs-show\r
+@@ -91,8 +91,7 @@ test_begin_subtest "notmuch-show: elide non-matching messages (w/ prefix arg to\r
+ test_emacs '(let ((notmuch-show-only-matching-messages nil))\r
+       (notmuch-search "from:lars@seas.harvard.edu and subject:\"Maildir storage\"")\r
+       (notmuch-test-wait)\r
+-      (let ((current-prefix-arg t))\r
+-        (notmuch-search-show-thread))\r
++      (notmuch-search-show-thread t)\r
+       (notmuch-test-wait)\r
+       (test-visible-output))'\r
+ test_expect_equal_file OUTPUT $EXPECTED/notmuch-show-elide-non-matching-messages-on\r
+-- \r
+1.7.9.1\r
+\r