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