Run notmuch-show-hook' after setting header-line-format'

This patch makes it possible for notmuch-show hooks to change the
header line.

Signed-off-by: Damien Cassou <damien.cassou@gmail.com>
This commit is contained in:
Damien Cassou 2012-09-17 18:43:28 +02:00 committed by David Bremner
parent 8a22e28750
commit f164784d56

View file

@ -1077,10 +1077,10 @@ function is used."
(jit-lock-register #'notmuch-show-buttonise-links) (jit-lock-register #'notmuch-show-buttonise-links)
(run-hooks 'notmuch-show-hook))
;; Set the header line to the subject of the first message. ;; Set the header line to the subject of the first message.
(setq header-line-format (notmuch-show-strip-re (notmuch-show-get-subject))))) (setq header-line-format (notmuch-show-strip-re (notmuch-show-get-subject)))
(run-hooks 'notmuch-show-hook))))
(defun notmuch-show-capture-state () (defun notmuch-show-capture-state ()
"Capture the state of the current buffer. "Capture the state of the current buffer.