unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: "servilio@gmail.com" <servilio@gmail.com>
To: notmuch <notmuch@notmuchmail.org>
Subject: [PATCH 1/3] Use notmuch-search-<what>-thread where moving between  threads.
Date: Sat, 26 Jun 2010 19:27:19 -0400	[thread overview]
Message-ID: <AANLkTilIpVgZOC90qtKHSRGra2-g6ZJ8Mg4kGRDxEQ7Y@mail.gmail.com> (raw)

This makes clearer what the intention is in the code, and opens the
possibility for alternate logic for moving between threads.
---
 emacs/notmuch-show.el |    2 +-
 emacs/notmuch.el      |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el
index f872cdf..84c6cd6 100644
--- a/emacs/notmuch-show.el
+++ b/emacs/notmuch-show.el
@@ -994,7 +994,7 @@ argument, hide all of the messages."
     (if parent-buffer
 	(progn
 	  (switch-to-buffer parent-buffer)
-	  (forward-line)
+	  (notmuch-search-next-thread)
 	  (if show-next
 	      (notmuch-search-show-thread))))))

diff --git a/emacs/notmuch.el b/emacs/notmuch.el
index fe1041f..417f3fd 100644
--- a/emacs/notmuch.el
+++ b/emacs/notmuch.el
@@ -549,7 +549,7 @@ thread or threads in the current region."
 This function advances the next thread when finished."
   (interactive)
   (notmuch-search-remove-tag-thread "inbox")
-  (forward-line))
+  (notmuch-search-next-thread))

 (defun notmuch-search-process-sentinel (proc msg)
   "Add a message to let user know when \"notmuch search\" exits"
-- 
1.7.1

                 reply	other threads:[~2010-06-26 23:27 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=AANLkTilIpVgZOC90qtKHSRGra2-g6ZJ8Mg4kGRDxEQ7Y@mail.gmail.com \
    --to=servilio@gmail.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).