emacs: fix a bug introduced by the recent search cleanups.

In commit 5d0883e the function notmuch-search-next-thread was changed.
In particular it only goes to the next message if there is a next
message. This breaks notmuch-show-archive-thread-then-next. Fix this
by going to the "next" message whenever we are on a current message.
This commit is contained in:
Mark Walters 2012-08-02 08:19:37 +01:00 committed by David Bremner
parent 015bc16f53
commit 3fa00020ea

View file

@ -293,7 +293,7 @@ For a mouse binding, return nil."
(defun notmuch-search-next-thread ()
"Select the next thread in the search results."
(interactive)
(when (notmuch-search-get-result (notmuch-search-result-end))
(when (notmuch-search-get-result)
(goto-char (notmuch-search-result-end))))
(defun notmuch-search-previous-thread ()