Re: [feature request] emacs: use `notmuch insert` for FCC
[notmuch-archives.git] / 1c / 50a382726da210261f5c83249d5f1a4ca16919
1 Return-Path: <dmitry.kurochkin@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 79CBF431FD0\r
6         for <notmuch@notmuchmail.org>; Sat,  2 Jul 2011 21:28:16 -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.799\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5\r
12         tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
13         FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
14 Received: from olra.theworths.org ([127.0.0.1])\r
15         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
16         with ESMTP id qBNvOxRy9B30 for <notmuch@notmuchmail.org>;\r
17         Sat,  2 Jul 2011 21:28:16 -0700 (PDT)\r
18 Received: from mail-bw0-f53.google.com (mail-bw0-f53.google.com\r
19         [209.85.214.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
20         (No client certificate requested)\r
21         by olra.theworths.org (Postfix) with ESMTPS id CCBFE431FB6\r
22         for <notmuch@notmuchmail.org>; Sat,  2 Jul 2011 21:28:15 -0700 (PDT)\r
23 Received: by bwg12 with SMTP id 12so3982009bwg.26\r
24         for <notmuch@notmuchmail.org>; Sat, 02 Jul 2011 21:28:14 -0700 (PDT)\r
25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;\r
26         h=from:to:cc:subject:date:message-id:x-mailer;\r
27         bh=/VF1ELdqs5eSA9zM5yGei7WA9f0nSgkB60qcm7SSYNg=;\r
28         b=vROY6LzBfIDdz+aS6TLC1XdnVmHvqZMkcjpdUk3CqXm5sbuMQQbZMb8eNfoYRU49Ir\r
29         NBRdITSNkkiLgdCPDiTt/Jn0nca4pEX9UoYyS7wRf4XkYGSMBqliWcIAycqYFAR41c/K\r
30         +dA7qHPW5WmW1pklm7xFoIz6MnXSVTiIsCwQ4=\r
31 Received: by 10.204.141.205 with SMTP id n13mr885259bku.198.1309667294180;\r
32         Sat, 02 Jul 2011 21:28:14 -0700 (PDT)\r
33 Received: from localhost ([91.144.186.21])\r
34         by mx.google.com with ESMTPS id k16sm4379288bks.13.2011.07.02.21.28.12\r
35         (version=TLSv1/SSLv3 cipher=OTHER);\r
36         Sat, 02 Jul 2011 21:28:13 -0700 (PDT)\r
37 From: Dmitry Kurochkin <dmitry.kurochkin@gmail.com>\r
38 To: notmuch@notmuchmail.org\r
39 Subject: [PATCH 1/2] test: add emacs test for hiding message when point is at\r
40         invisible text\r
41 Date: Sun,  3 Jul 2011 08:28:05 +0400\r
42 Message-Id: <1309667286-10357-1-git-send-email-dmitry.kurochkin@gmail.com>\r
43 X-Mailer: git-send-email 1.7.5.4\r
44 X-BeenThere: notmuch@notmuchmail.org\r
45 X-Mailman-Version: 2.1.13\r
46 Precedence: list\r
47 List-Id: "Use and development of the notmuch mail system."\r
48         <notmuch.notmuchmail.org>\r
49 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
50         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
51 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
52 List-Post: <mailto:notmuch@notmuchmail.org>\r
53 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
54 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
55         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
56 X-List-Received-Date: Sun, 03 Jul 2011 04:28:16 -0000\r
57 \r
58 Human-friendly scenario:\r
59 \r
60 * open a thread which has at least 2 messages in notmuch-show view\r
61 * hide the first message\r
62 * move to the first line of the second message\r
63 * press C-a (bound to `beginning-of-visual-line')\r
64 * press RET (bound to `notmuch-show-toggle-message')\r
65 \r
66 Result: the first message is shown\r
67 Expected result: the second message is hidden or shown\r
68 \r
69 Currently the test is failing.  The bug will be fixed by a subsequent\r
70 patch.\r
71 ---\r
72  test/emacs |   11 +++++++++++\r
73  1 files changed, 11 insertions(+), 0 deletions(-)\r
74 \r
75 diff --git a/test/emacs b/test/emacs\r
76 index 53f455a..173d371 100755\r
77 --- a/test/emacs\r
78 +++ b/test/emacs\r
79 @@ -347,4 +347,15 @@ test_emacs '(notmuch-show "id:f35dbb950911171438k5df6eb56k77b6c0944e2e79ae@mail.\r
80             (test-visible-output)'\r
81  test_expect_equal_file OUTPUT $EXPECTED/notmuch-show-thread-with-hidden-messages\r
82  \r
83 +test_begin_subtest 'Hiding message when point is at invisible text'\r
84 +test_emacs '(notmuch-show "id:1258471718-6781-2-git-send-email-dottedmag@dottedmag.net")\r
85 +           (notmuch-show-toggle-message)\r
86 +           (test-visible-output "EXPECTED")\r
87 +           (notmuch-show-toggle-message)\r
88 +           (goto-char (previous-single-char-property-change\r
89 +                       (point) '\''invisible))\r
90 +           (notmuch-show-toggle-message)\r
91 +           (test-visible-output)'\r
92 +test_expect_equal_file OUTPUT EXPECTED\r
93 +\r
94  test_done\r
95 -- \r
96 1.7.5.4\r
97 \r