]> git.notmuchmail.org Git - notmuch/commit
Simplify "unread" tag handling in emacs UI.
authorJameson Rollins <jrollins@finestructure.net>
Tue, 19 Jan 2010 22:54:16 +0000 (17:54 -0500)
committerCarl Worth <cworth@cworth.org>
Thu, 25 Feb 2010 00:40:52 +0000 (16:40 -0800)
commit4b9d2e3a4dda33b03289ad85ee6156ea405f6795
tree049c524d205723b25fae2a7268bce7950c126ff3
parenta7afcee50cab10f98072e97af2454bc2e939059b
Simplify "unread" tag handling in emacs UI.

This patch is intended to greatly simplify the handling of the
"unread" tag in the emacs UI.  This patch adds a new function
'notmuch-show-mark-read', that removes the "unread" tag in
notmuch-show-mode.  This function is then executed as a
notmuch-show-hook, and by notmuch-show-next-message.  All of the
functions that explicitly marked messages as unread are removed or
renamed.

The idea here is that the user should never have to worry about
manipulating the "unread" tag.  The tag should persist until the user
actually views a message, at which point it should be automatically
removed.  This patch simplifies the notmuch.el quite a bit, removing a
lot of somewhat redundant functions, and reducing clutter in the name
and key-mapping space.
notmuch.el