From: Mark Walters Date: Thu, 2 Aug 2012 07:19:37 +0000 (+0100) Subject: emacs: fix a bug introduced by the recent search cleanups. X-Git-Tag: 0.14~35 X-Git-Url: https://git.notmuchmail.org/git?a=commitdiff_plain;h=3fa00020eaac7dfb403cac239a5e59fb2b5d3e2c;p=notmuch 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. --- diff --git a/emacs/notmuch.el b/emacs/notmuch.el index fd1836f1..d2d82a97 100644 --- a/emacs/notmuch.el +++ b/emacs/notmuch.el @@ -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 ()