]> git.cworth.org Git - obsolete/notmuch-old/commitdiff
emacs: fix a bug introduced by the recent search cleanups.
authorMark Walters <markwalters1009@gmail.com>
Thu, 2 Aug 2012 07:19:37 +0000 (08:19 +0100)
committerDavid Bremner <bremner@debian.org>
Fri, 3 Aug 2012 00:11:53 +0000 (21:11 -0300)
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.

emacs/notmuch.el

index fd1836f1a83555edaa14fb5e214df96c8c00d6e2..d2d82a97601756338617d738c91b5ed75c9d75a0 100644 (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 ()