unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Daniel Schoepe <daniel.schoepe@googlemail.com>
To: notmuch@notmuchmail.org
Subject: [PATCH 3/3] emacs: Test for thread-outlining
Date: Mon, 13 Jun 2011 01:31:20 +0200	[thread overview]
Message-ID: <1307921480-17130-4-git-send-email-daniel.schoepe@googlemail.com> (raw)
In-Reply-To: <1307921480-17130-1-git-send-email-daniel.schoepe@googlemail.com>

---
 test/emacs                                         |    5 +++++
 .../notmuch-show-thread-outline                    |    7 +++++++
 2 files changed, 12 insertions(+), 0 deletions(-)
 create mode 100644 test/emacs.expected-output/notmuch-show-thread-outline

diff --git a/test/emacs b/test/emacs
index f2e9598..8d3a3c5 100755
--- a/test/emacs
+++ b/test/emacs
@@ -31,6 +31,11 @@ maildir_storage_thread=$(notmuch search --output=threads id:20091117190054.GU316
 test_emacs "(notmuch-show \"$maildir_storage_thread\") (princ (buffer-string))" >OUTPUT
 test_expect_equal_file OUTPUT $EXPECTED/notmuch-show-thread-maildir-storage
 
+test_begin_subtest "Thread outlining in notmuch-show"
+maildir_storage_thread=$(notmuch search --output=threads id:20091117190054.GU3165@dottiness.seas.harvard.edu)
+test_emacs "(notmuch-show \"$maildir_storage_thread\") (notmuch-show-outline) (switch-to-buffer (notmuch-show-outline-buffer-name)) (princ (buffer-string))" >OUTPUT
+test_expect_equal_file OUTPUT $EXPECTED/notmuch-show-thread-outline
+
 test_begin_subtest "notmuch-show for message with invalid From"
 add_message "[subject]=\"message-with-invalid-from\"" "[from]=\"\\\"Invalid \\\" From\\\" <test_suite@notmuchmail.org>\""
 thread=$(notmuch search --output=threads subject:message-with-invalid-from)
diff --git a/test/emacs.expected-output/notmuch-show-thread-outline b/test/emacs.expected-output/notmuch-show-thread-outline
new file mode 100644
index 0000000..b210ba7
--- /dev/null
+++ b/test/emacs.expected-output/notmuch-show-thread-outline
@@ -0,0 +1,7 @@
+Lars Kellogg-Stedman <lars@seas.harvard.edu> - 2009-11-17
+ Mikhail Gusarov <dottedmag@dottedmag.net> - 2009-11-17
+  Lars Kellogg-Stedman <lars@seas.harvard.edu> - 2009-11-17
+   "Mikhail Gusarov" <dottedmag@dottedmag.net> - 2009-11-17
+   "Keith Packard" <keithp@keithp.com> - 2009-11-17
+    Lars Kellogg-Stedman <lars@seas.harvard.edu> - 2009-11-18
+ "Carl Worth" <cworth@cworth.org> - 2009-11-18
-- 
1.7.5.4

  parent reply	other threads:[~2011-06-12 23:31 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-12 23:31 [PATCH] emacs: thread outlining Daniel Schoepe
2011-06-12 23:31 ` [PATCH 1/3] emacs: Document notmuch-show-get-message-properties Daniel Schoepe
2011-06-12 23:31 ` [PATCH 2/3] emacs: Add thread-outline functionality Daniel Schoepe
2011-06-13 17:23   ` Austin Clements
2011-06-12 23:31 ` Daniel Schoepe [this message]
2011-06-14 16:28   ` [PATCH 3/3] emacs: Test for thread-outlining Aneesh Kumar K.V
2011-06-15  1:42     ` Jameson Graef Rollins
2011-07-08 18:46 ` [PATCH v2 0/3] emacs: Document notmuch-show-get-message-properties Daniel Schoepe
2011-07-08 18:46   ` [PATCH v2 1/3] " Daniel Schoepe
2011-07-08 18:46   ` [PATCH v2 2/3] emacs: Add thread-outline functionality Daniel Schoepe
2011-07-08 18:46   ` [PATCH v2 3/3] emacs: Test for thread-outlining Daniel Schoepe
2011-12-16 13:01   ` [PATCH v2 0/3] emacs: Document notmuch-show-get-message-properties David Bremner
2011-12-16 23:54     ` Jameson Graef Rollins
2011-12-17  0:16 ` [PATCH v2 0/2] emacs: Add thread-outline functionality Daniel Schoepe
2011-12-17  0:16   ` [PATCH v2 1/2] " Daniel Schoepe
2011-12-17  0:16   ` [PATCH v2 2/2] emacs: Test for thread-outlining Daniel Schoepe
2011-12-17  0:31     ` Jameson Graef Rollins
2011-12-17  0:32 ` [PATCH v3 1/2] emacs: Add thread-outline functionality Daniel Schoepe
2011-12-17  0:32   ` Daniel Schoepe
2011-12-17  0:32   ` [PATCH v3 2/2] emacs: Test for thread-outlining Daniel Schoepe
2011-12-17  0:35 ` Daniel Schoepe
2011-12-17  0:35   ` [PATCH v4 1/2] emacs: Add thread-outline functionality Daniel Schoepe
2012-02-12 17:15     ` Daniel Schoepe
2011-12-17  0:35   ` [PATCH v4 2/2] emacs: Test for thread-outlining Daniel Schoepe

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://notmuchmail.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1307921480-17130-4-git-send-email-daniel.schoepe@googlemail.com \
    --to=daniel.schoepe@googlemail.com \
    --cc=notmuch@notmuchmail.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).