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: Wed, 01 Jun 2022 06:26:25 -0300

To: Jose A Ortega Ruiz, notmuch@notmuchmail.org

Cc:

From: David Bremner


Jose A Ortega Ruiz <jao@gnu.org> writes:

> On Thu, May 26 2022, David Bremner wrote:

>> 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?
>
> well, the function is called with the message buffer being current, so
> it has access to all the message properties... we could even remove the
> subject argument, but there's some convenient cleaning up on it that, i
> think, makes it convenient.
>

Fair enough. But since the calling is not obvious to the casual user
(*cough* or me), maybe mention the availability of message properties in
the docstring.
_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org

Thread: