From f164784d56b76d7babb44b942d43e3d1009d158a Mon Sep 17 00:00:00 2001 From: Damien Cassou Date: Mon, 17 Sep 2012 18:43:28 +0200 Subject: [PATCH] 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 --- emacs/notmuch-show.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el index 1c1cf9c7..86130cec 100644 --- a/emacs/notmuch-show.el +++ b/emacs/notmuch-show.el @@ -1077,10 +1077,10 @@ function is used." (jit-lock-register #'notmuch-show-buttonise-links) - (run-hooks 'notmuch-show-hook)) + ;; Set the header line to the subject of the first message. + (setq header-line-format (notmuch-show-strip-re (notmuch-show-get-subject))) - ;; Set the header line to the subject of the first message. - (setq header-line-format (notmuch-show-strip-re (notmuch-show-get-subject))))) + (run-hooks 'notmuch-show-hook)))) (defun notmuch-show-capture-state () "Capture the state of the current buffer. -- 2.43.0