Re: [PATCH] emacs: notmuch-show-header-line: allow format strings and functions

Subject: Re: [PATCH] emacs: notmuch-show-header-line: allow format strings and functions

Date: Thu, 26 May 2022 20:51:36 -0300

To: jao, notmuch@notmuchmail.org

Cc:

From: David Bremner


jao <jao@gnu.org> writes:

> 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.

The API defined here (function taking the subject as a string) seems a
bit limited. What if the user wants to use some other message header in
the header-line? Or list tags?

I would complain about missing test, but I think the test machinery
works via buffer-substring-no-properties, which excludes header and mode
lines.

On the other hand, it should be possible to update the manual, at least
with a copy of the docstring.
_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org

Thread: