contrib: pick: bugfix: use notmuch-show-mark-read-tags instead of unread
authorMark Walters <markwalters1009@gmail.com>
Sat, 1 Jun 2013 21:49:12 +0000 (22:49 +0100)
committerDavid Bremner <bremner@debian.org>
Sun, 2 Jun 2013 23:53:49 +0000 (20:53 -0300)
Previously pick removed the unread tag from its tag display: since the
tag change is now customisable use the customised variable.

This only affected the tags displayed, not the tags in the database as
notmuch-show (in the view pane) did the actual tag changes.

contrib/notmuch-pick/notmuch-pick.el

index b03c9dde01fb8533209c0836c62c5dd459d29789..0e66efa52c153ad3d6935203aa86e27d1ba059bd 100644 (file)
@@ -384,7 +384,8 @@ Does NOT change the database."
        (with-current-buffer buffer
          (setq notmuch-pick-message-window window)
          (add-hook 'kill-buffer-hook 'notmuch-pick-message-window-kill-hook)))
-      (notmuch-pick-tag-update-display (list "-unread"))
+      (when notmuch-show-mark-read-tags
+       (notmuch-pick-tag-update-display notmuch-show-mark-read-tags))
       (setq notmuch-pick-message-buffer buffer))))
 
 (defun notmuch-pick-show-message-out ()