[PATCH 4/5] emacs: tree: make the tree code force the mark read update

Mark Walters markwalters1009 at gmail.com
Sat Dec 14 15:44:35 PST 2013


Previously the tree code relied on the show buffer to do the
unread/read update. Once this is done via the post-command-hook this
won't be automatic so explicitly force the update.
---
 emacs/notmuch-tree.el |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/emacs/notmuch-tree.el b/emacs/notmuch-tree.el
index 8d59e65..6ec9561 100644
--- a/emacs/notmuch-tree.el
+++ b/emacs/notmuch-tree.el
@@ -438,6 +438,9 @@ Does NOT change the database."
 	  (setq notmuch-tree-message-window window)
 	  (add-hook 'kill-buffer-hook 'notmuch-tree-message-window-kill-hook)))
       (when notmuch-show-mark-read-tags
+	(when (window-live-p notmuch-tree-message-window)
+	  (with-selected-window notmuch-tree-message-window
+	    (notmuch-show-mark-read)))
 	(notmuch-tree-tag-update-display notmuch-show-mark-read-tags))
       (setq notmuch-tree-message-buffer buffer))))
 
-- 
1.7.9.1



More information about the notmuch mailing list