mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-12-22 09:24:54 +01:00
emacs: tree: mark read change
The mark read code for tree mode did not get updated in the recent changes. This updates it to match. Since the user can customize the mark read logic we just call the show logic in the message pane.
This commit is contained in:
parent
0291ec71b6
commit
5e37568841
1 changed files with 8 additions and 0 deletions
|
@ -413,6 +413,13 @@ Does NOT change the database."
|
|||
(ignore-errors
|
||||
(delete-window notmuch-tree-message-window)))))
|
||||
|
||||
(defun notmuch-tree-command-hook ()
|
||||
(when (eq major-mode 'notmuch-tree-mode)
|
||||
;; We just run the notmuch-show-command-hook on the message pane.
|
||||
(when (buffer-live-p notmuch-tree-message-buffer)
|
||||
(with-current-buffer notmuch-tree-message-buffer
|
||||
(notmuch-show-command-hook)))))
|
||||
|
||||
(defun notmuch-tree-show-message-in ()
|
||||
"Show the current message (in split-pane)."
|
||||
(interactive)
|
||||
|
@ -855,6 +862,7 @@ This is is a helper function for notmuch-tree. The arguments are
|
|||
the same as for the function notmuch-tree."
|
||||
(interactive)
|
||||
(notmuch-tree-mode)
|
||||
(add-hook 'post-command-hook #'notmuch-tree-command-hook t t)
|
||||
(setq notmuch-tree-basic-query basic-query)
|
||||
(setq notmuch-tree-query-context query-context)
|
||||
(setq notmuch-tree-target-msg target)
|
||||
|
|
Loading…
Reference in a new issue