[PATCH] Run `notmuch-show-hook' after setting `header-line-format'
Tomi Ollila
tomi.ollila at iki.fi
Mon Sep 24 04:44:43 PDT 2012
On Mon, Sep 17 2012, Damien Cassou <damien.cassou at gmail.com> wrote:
> This patch makes it possible for notmuch-show hooks to change the
> header line.
>
> Signed-off-by: Damien Cassou <damien.cassou at gmail.com>
> ---
LGTM.
Tomi
> 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 ce5ea6f..16008b4 100644
> --- a/emacs/notmuch-show.el
> +++ b/emacs/notmuch-show.el
> @@ -1070,10 +1070,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.
> --
> 1.7.9.5
> _______________________________________________
> notmuch mailing list
> notmuch at notmuchmail.org
> http://notmuchmail.org/mailman/listinfo/notmuch
More information about the notmuch
mailing list