aboutsummaryrefslogtreecommitdiffhomepage
path: root/emacs
diff options
context:
space:
mode:
authorGravatar Damien Cassou <damien.cassou@gmail.com>2012-09-17 18:43:28 +0200
committerGravatar David Bremner <bremner@debian.org>2012-09-27 12:48:43 -0300
commitf164784d56b76d7babb44b942d43e3d1009d158a (patch)
tree2440d71a75c9f33dea6b09839122d2e1cac8b1eb /emacs
parent8a22e2875049b47ebf7058e93bd2d12747838519 (diff)
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>
Diffstat (limited to 'emacs')
-rw-r--r--emacs/notmuch-show.el6
1 files 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.