]> git.cworth.org Git - notmuch/commit
emacs: breakout notmuch-show-advance functionality from notmuch-show-advance-and...
authorJameson Graef Rollins <jrollins@finestructure.net>
Sun, 13 Nov 2011 21:16:48 +0000 (13:16 -0800)
committerDavid Bremner <bremner@debian.org>
Mon, 21 Nov 2011 02:45:17 +0000 (22:45 -0400)
commit53629b55065122eff3a80bc59968613f8e10e490
treebe818e560fe45ad68c1013e5aac2c7eaec04953b
parentdbceb50f4759db8819877706d086dd6af31923ba
emacs: breakout notmuch-show-advance functionality from notmuch-show-advance-and-archive

This patch breaks out much of the functionality of
notmuch-show-advance-and-archive into a new function:
notmuch-show-advance.  This new function does all the advancing
through a show buffer that notmuch-show-advance-and-archive did,
without all the invasive thread archiving.  The return value of
notmuch-show-advance is nil if the bottom of the thread is not
reached, and t if it is.

notmuch-show-advance-and-archive is modified to just call
notmuch-show-advance, and then call notmuch-show-archive-thread if the
return value is true.  In this way the previous functionality of
notmuch-show-advance-and-archive is preserved.

This provides a way for people to rebind the space bar to a more sane
function if they don't like the default behavior.
emacs/notmuch-show.el