Re: [PATCH] emacs: wash: make word-wrap bound message width
[notmuch-archives.git] / 2a / d085f3c960d0a45115704616b63f6d40bd662d
1 Return-Path: <markwalters1009@gmail.com>\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 B85E5429E35\r
6         for <notmuch@notmuchmail.org>; Tue,  3 Sep 2013 07:05:25 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: 0.201\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=0.201 tagged_above=-999 required=5\r
12         tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
13         FREEMAIL_ENVFROM_END_DIGIT=1, FREEMAIL_FROM=0.001,\r
14         RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
15 Received: from olra.theworths.org ([127.0.0.1])\r
16         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
17         with ESMTP id 9NAgDb1uxL0t for <notmuch@notmuchmail.org>;\r
18         Tue,  3 Sep 2013 07:05:20 -0700 (PDT)\r
19 Received: from mail-wi0-f182.google.com (mail-wi0-f182.google.com\r
20         [209.85.212.182]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
21         (No client certificate requested)\r
22         by olra.theworths.org (Postfix) with ESMTPS id A58FD431FC9\r
23         for <notmuch@notmuchmail.org>; Tue,  3 Sep 2013 07:05:14 -0700 (PDT)\r
24 Received: by mail-wi0-f182.google.com with SMTP id ez12so2603734wid.15\r
25         for <notmuch@notmuchmail.org>; Tue, 03 Sep 2013 07:05:13 -0700 (PDT)\r
26 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;\r
27         h=from:to:cc:subject:date:message-id:in-reply-to:references;\r
28         bh=htliea/qkpkTMxYt2+l7mzSPMaxhkKnOnHlVFWdA6zM=;\r
29         b=eLOR3/hAkOgYTh3IK8o7tfRAkcTj5VGtFTRBsxIFfK8hTgoIJn4UfsBS1ozMi9ERrZ\r
30         SMVzzNaG14B/LmXkS6M8rvkhvb/bZwMLdfQnhcXXKY0TfWY5h5ck8g7SEf1/UyfxUGq0\r
31         5McRrXQUka1RCgu8tHJHZ1rOU7okq8e6oEI0faHCsFcOXGT0G0EMttw2cRYGaFHJU2nr\r
32         L1gFvlS9uaRgejtbM0qeJPdG4xTFojP4Tki25xOV23I61ttzlBRDnsfg133WyK06xASW\r
33         OIg3Xuy3nwXY8AB+zrmekpkEU4rU8muQfzydQNxN+T1JLrLK/XsWJGC6MWJd/mn+PwSY\r
34         5qyg==\r
35 X-Received: by 10.180.109.10 with SMTP id ho10mr18417843wib.14.1378217113577; \r
36         Tue, 03 Sep 2013 07:05:13 -0700 (PDT)\r
37 Received: from localhost (93-97-24-31.zone5.bethere.co.uk. [93.97.24.31])\r
38         by mx.google.com with ESMTPSA id v7sm25960462wiy.11.1969.12.31.16.00.00\r
39         (version=TLSv1.2 cipher=RC4-SHA bits=128/128);\r
40         Tue, 03 Sep 2013 07:05:13 -0700 (PDT)\r
41 From: Mark Walters <markwalters1009@gmail.com>\r
42 To: notmuch@notmuchmail.org\r
43 Subject: [PATCH 4/4] contrib: pick: test: buffer movement\r
44 Date: Tue,  3 Sep 2013 15:05:00 +0100\r
45 Message-Id: <1378217100-27533-5-git-send-email-markwalters1009@gmail.com>\r
46 X-Mailer: git-send-email 1.7.9.1\r
47 In-Reply-To: <1378217100-27533-1-git-send-email-markwalters1009@gmail.com>\r
48 References: <1378217100-27533-1-git-send-email-markwalters1009@gmail.com>\r
49 X-BeenThere: notmuch@notmuchmail.org\r
50 X-Mailman-Version: 2.1.13\r
51 Precedence: list\r
52 List-Id: "Use and development of the notmuch mail system."\r
53         <notmuch.notmuchmail.org>\r
54 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
55         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
56 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
57 List-Post: <mailto:notmuch@notmuchmail.org>\r
58 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
59 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
60         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
61 X-List-Received-Date: Tue, 03 Sep 2013 14:05:26 -0000\r
62 \r
63 ---\r
64  contrib/notmuch-pick/test/emacs-pick |   40 ++++++++++++++++++++++++++++++++++\r
65  1 files changed, 40 insertions(+), 0 deletions(-)\r
66 \r
67 diff --git a/contrib/notmuch-pick/test/emacs-pick b/contrib/notmuch-pick/test/emacs-pick\r
68 index 6834998..a802d0e 100755\r
69 --- a/contrib/notmuch-pick/test/emacs-pick\r
70 +++ b/contrib/notmuch-pick/test/emacs-pick\r
71 @@ -167,4 +167,44 @@ output=$(test_emacs '(add-to-list (quote load-path) "'$PICK_DIR'")\r
72                      (notmuch-show-stash-message-id)')\r
73  test_expect_equal "$output" "\"Stashed: id:1258498485-sup-142@elly\""\r
74  \r
75 +test_begin_subtest "Move to next matching message"\r
76 +output=$(test_emacs '(add-to-list (quote load-path) "'$PICK_DIR'")\r
77 +                    (require (quote notmuch-pick))\r
78 +                    (notmuch-pick "from:cworth")\r
79 +                    (notmuch-test-wait)\r
80 +                    (notmuch-pick-next-matching-message)\r
81 +                    (notmuch-show-stash-message-id)')\r
82 +test_expect_equal "$output" "\"Stashed: id:878we4qdqf.fsf@yoom.home.cworth.org\""\r
83 +\r
84 +test_begin_subtest "Move to next thread"\r
85 +output=$(test_emacs '(add-to-list (quote load-path) "'$PICK_DIR'")\r
86 +                    (require (quote notmuch-pick))\r
87 +                    (notmuch-pick "tag:inbox")\r
88 +                    (notmuch-test-wait)\r
89 +                    (forward-line 26)\r
90 +                    (notmuch-pick-next-thread)\r
91 +                    (notmuch-show-stash-message-id)')\r
92 +test_expect_equal "$output" "\"Stashed: id:1258471718-6781-1-git-send-email-dottedmag@dottedmag.net\""\r
93 +\r
94 +test_begin_subtest "Move to previous thread"\r
95 +output=$(test_emacs '(add-to-list (quote load-path) "'$PICK_DIR'")\r
96 +                    (require (quote notmuch-pick))\r
97 +                    (notmuch-pick "tag:inbox")\r
98 +                    (notmuch-test-wait)\r
99 +                    (forward-line 26)\r
100 +                    (notmuch-pick-prev-thread)\r
101 +                    (notmuch-show-stash-message-id)')\r
102 +test_expect_equal "$output" "\"Stashed: id:20091117190054.GU3165@dottiness.seas.harvard.edu\""\r
103 +\r
104 +test_begin_subtest "Move to previous previous thread"\r
105 +output=$(test_emacs '(add-to-list (quote load-path) "'$PICK_DIR'")\r
106 +                    (require (quote notmuch-pick))\r
107 +                    (notmuch-pick "tag:inbox")\r
108 +                    (notmuch-test-wait)\r
109 +                    (forward-line 26)\r
110 +                    (notmuch-pick-prev-thread)\r
111 +                    (notmuch-pick-prev-thread)\r
112 +                    (notmuch-show-stash-message-id)')\r
113 +test_expect_equal "$output" "\"Stashed: id:1258493565-13508-1-git-send-email-keithp@keithp.com\""\r
114 +\r
115  test_done\r
116 -- \r
117 1.7.9.1\r
118 \r