]> git.notmuchmail.org Git - notmuch/commitdiff
Run `notmuch-show-hook' after setting `header-line-format'
authorDamien Cassou <damien.cassou@gmail.com>
Mon, 17 Sep 2012 16:43:28 +0000 (18:43 +0200)
committerDavid Bremner <bremner@debian.org>
Thu, 27 Sep 2012 15:48:43 +0000 (12:48 -0300)
This patch makes it possible for notmuch-show hooks to change the
header line.

Signed-off-by: Damien Cassou <damien.cassou@gmail.com>
emacs/notmuch-show.el

index 1c1cf9c7de02f6e651ec6f0090f29dd209e6e72d..86130cec978d8069b9b900460976d3327d653a4f 100644 (file)
@@ -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.