* [PATCH] Run `notmuch-show-hook' after setting `header-line-format'
@ 2012-09-17 16:43 Damien Cassou
2012-09-24 11:44 ` Tomi Ollila
2012-09-27 16:00 ` David Bremner
0 siblings, 2 replies; 3+ messages in thread
From: Damien Cassou @ 2012-09-17 16:43 UTC (permalink / raw)
To: notmuch
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 | 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
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] Run `notmuch-show-hook' after setting `header-line-format'
2012-09-17 16:43 [PATCH] Run `notmuch-show-hook' after setting `header-line-format' Damien Cassou
@ 2012-09-24 11:44 ` Tomi Ollila
2012-09-27 16:00 ` David Bremner
1 sibling, 0 replies; 3+ messages in thread
From: Tomi Ollila @ 2012-09-24 11:44 UTC (permalink / raw)
To: Damien Cassou, notmuch
On Mon, Sep 17 2012, Damien Cassou <damien.cassou@gmail.com> wrote:
> This patch makes it possible for notmuch-show hooks to change the
> header line.
>
> Signed-off-by: Damien Cassou <damien.cassou@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@notmuchmail.org
> http://notmuchmail.org/mailman/listinfo/notmuch
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] Run `notmuch-show-hook' after setting `header-line-format'
2012-09-17 16:43 [PATCH] Run `notmuch-show-hook' after setting `header-line-format' Damien Cassou
2012-09-24 11:44 ` Tomi Ollila
@ 2012-09-27 16:00 ` David Bremner
1 sibling, 0 replies; 3+ messages in thread
From: David Bremner @ 2012-09-27 16:00 UTC (permalink / raw)
To: Damien Cassou, notmuch
Damien Cassou <damien.cassou@gmail.com> writes:
> This patch makes it possible for notmuch-show hooks to change the
> header line.
pushed.
d
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-09-27 16:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-17 16:43 [PATCH] Run `notmuch-show-hook' after setting `header-line-format' Damien Cassou
2012-09-24 11:44 ` Tomi Ollila
2012-09-27 16:00 ` David Bremner
Code repositories for project(s) associated with this public inbox
https://yhetil.org/notmuch.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).