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

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

Date: Sat, 14 Dec 2013 23:44:35 +0000

To: notmuch@notmuchmail.org

Cc:

From: Mark Walters


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


Thread: