]> git.notmuchmail.org Git - notmuch/commitdiff
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)
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.


No differences found