]> git.notmuchmail.org Git - notmuch/commit
emacs: When refreshing a show buffer, only mark read when resetting state
authorAustin Clements <amdragon@MIT.EDU>
Tue, 21 Feb 2012 15:42:31 +0000 (10:42 -0500)
committerDavid Bremner <bremner@debian.org>
Sat, 25 Feb 2012 14:35:08 +0000 (10:35 -0400)
commit4d77f18b1dbf4e6261b3d16cbbb50cb2127ebccf
tree129ec879e4c328e40dbdee8b478e480d05248d43
parent2f86290aaf6e4b0de54ea75ca17ce129bfbf3730
emacs: When refreshing a show buffer, only mark read when resetting state

If we retain state while refreshing a show buffer, it should not mark
any messages read since it's not a navigation operation (it especially
shouldn't mark the first message matching the query read, which is
what it did previously).  If the user or caller requests that refresh
reset the state of the buffer, then we consider that a navigation
operation, so we do mark the message under point after the refresh
read.

This is implemented by moving responsibility for initial positioning
and read-marking out of notmuch-show-worker and into its caller.
Since notmuch-show-worker is now exclusively about building the show
buffer, we rename it to notmuch-show-build-buffer.
emacs/notmuch-show.el