Re: [PATCH] emacs: use query name for tree saved-search buffer names

Subject: Re: [PATCH] emacs: use query name for tree saved-search buffer names

Date: Mon, 10 Jan 2022 03:16:39 +0000

To: David Bremner, notmuch@notmuchmail.org

Cc:

From: Jose Antonio Ortega Ruiz


On Sun, Jan 09 2022, David Bremner wrote:

> jao <jao@gnu.org> writes:
>
>> This simply mimics what we already do for non-tree searches, and makes
>> up for nicer buffer names.  Note that this patch only applies to
>> queries not coming from a search widget in the hello buffer.
>>
>
> Two questions:
>
> 1) Should this actually approximate what we do  in
>    #'notmuch-search-buffer-title ? The buffer gets a name like
>    "*notmuch-saved-search-inbox*"

oh, you're right.  i have that function advised (because i prefer using
the unadorned query name), and thought i was being consistent.  i think
we should.  maybe we could consider adding a customizable format string
with default "*notmuch-saved-search-inbox-%s*" for cases like mine?

> 2) Should we do the same thing (whatever that is) for unthreaded mode
>    searches?

i don't see any reason not to.  i'll be happy to send a patch for both
cases.

cheers,
jao
-- 
Whenever you commend, add your reasons for doing so; it is this which
distinguishes the approbation of a man of sense from the flattery of
sycophants and admiration of fools. -Richard Steele (1672-1729)
_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org

Thread: