emacs/tree: return true if a thread was found in next-thread

This will allow us to pop back to parent buffers when there are no
more threads to jump to.

Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin 2020-04-04 13:41:31 -07:00 committed by David Bremner
parent 144cf30e2c
commit 8eec15a903

View file

@ -679,10 +679,13 @@ message will be \"unarchived\", i.e. the tag changes in
(notmuch-tree-thread-top))
(defun notmuch-tree-next-thread ()
"Get the next thread in the current tree. Returns t if a thread was
found or nil if not."
(interactive)
(forward-line 1)
(while (not (or (notmuch-tree-get-prop :first) (eobp)))
(forward-line 1)))
(forward-line 1))
(not (eobp)))
(defun notmuch-tree-thread-mapcar (function)
"Iterate through all messages in the current thread