]> git.notmuchmail.org Git - notmuch/commit - emacs/notmuch-show.el
emacs: notmuch-show-header-line: allow format strings and functions
authorjao <jao@gnu.org>
Wed, 1 Jun 2022 09:53:36 +0000 (10:53 +0100)
committerDavid Bremner <david@tethera.net>
Wed, 1 Jun 2022 11:36:20 +0000 (08:36 -0300)
commit66369ddf1cd1d7f84a048095ee5dcf5cb07e110c
tree336f784ab47690d10b032a455ffbfae442ca64d0
parenteab665c573155237001f42ca3bcefc0f7b9281a5
emacs: notmuch-show-header-line: allow format strings and functions

If a string value is assigned to notmuch-show-header-line, it's used
as a format string to be passed passed to format-spec with `%s`
substituted by the message's subject.  If a function is given, it's
called with the subject as argument, and its return value used as
header line.

As before, t means displaying the subject and nil not using any header
line.

Signed-off-by: jao <jao@gnu.org>
Amended-by: db, docstring spelling fix
emacs/notmuch-show.el