[PATCH 1/3] Use notmuch-search-<what>-thread where moving between threads.
servilio at gmail.com
servilio at gmail.com
Sat Jun 26 16:27:19 PDT 2010
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
More information about the notmuch
mailing list