emacs: use search-next-thread to move to next thread in show mode
authorJameson Graef Rollins <jrollins@finestructure.net>
Wed, 25 Jan 2012 00:06:16 +0000 (16:06 -0800)
committerDavid Bremner <bremner@debian.org>
Tue, 31 Jan 2012 03:18:22 +0000 (23:18 -0400)
We should always use the dedicated search mode navigation functions,
in case navigation mechanics change down the line.

emacs/notmuch-show.el

index 84ac6249b5df21d70993080d3287da2d55b3ffec..6b8bd199d627f38b4b5ebe884d4ce5a4c9c2c07f 100644 (file)
@@ -39,6 +39,7 @@
 (declare-function notmuch-call-notmuch-process "notmuch" (&rest args))
 (declare-function notmuch-fontify-headers "notmuch" nil)
 (declare-function notmuch-select-tag-with-completion "notmuch" (prompt &rest search-terms))
+(declare-function notmuch-search-next-thread "notmuch" nil)
 (declare-function notmuch-search-show-thread "notmuch" nil)
 
 (defcustom notmuch-message-headers '("Subject" "To" "Cc" "Date")
@@ -1567,7 +1568,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))))))