Feature request: show destination in tree view when appropriate

2022-07-16 Thread Jon Hurst
Hi, In the emacs front end, I can specify authors in the format for search results and trees. This is great when looking at received mail, but when looking at sent mail it is not optimal. I have used mutt in the past, and this puts "To: xxx*.xxx" in this field for sent mail, which is much more

Re: Feature request: show destination in tree view when appropriate

2022-07-16 Thread David Bremner
Jon Hurst writes: > Hi, > > In the emacs front end, I can specify authors in the format for search > results and trees. This is great when looking at received mail, but when > looking at sent mail it is not optimal. I have used mutt in the past, > and this puts "To: xxx*.xxx" in this field fo

Re: Feature request: show destination in tree view when appropriate

2022-07-16 Thread Jon Hurst
Many thanks David; just what I needed. > tested either, but I suppose you would need to write a function like > author-or-to that decides for each message which of those to insert. For the record: (defun -notmuch-authors-or-to (format-string result) (let* ((headers (plist-get result :header

Re: [PATCH v2] CLI/git: opportunistically use bindings to check for known messages

2022-07-16 Thread Tomi Ollila
On Fri, Jul 15 2022, David Bremner wrote: > If the bindings are installed, use them to avoid one exec of notmuch > search per message. tnx. continues to work for me where I have symlink to nmbug in ~/bin/. some time in the future i'll investigate whether i get python3 path/to/nmbug.zip ... worki

update documentation for notmuch-*-result-format

2022-07-16 Thread David Bremner
Jon Hurst asked a question [1], and the the answer turned out to be the existing, but previously undocumented feature of using functions in format specifiers. This series tries to improve both the customization and documentation for 3 related variables. [1]: id:87a699e6wn@hursts.org.uk _

[PATCH 5/6] emacs: update defcustom for notmuch-unthreaded-result-format

2022-07-16 Thread David Bremner
This is essentially a copy of that for notmuch-tree-result-format, aside from the default value. --- emacs/notmuch-tree.el | 20 +++- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/emacs/notmuch-tree.el b/emacs/notmuch-tree.el index 68614623..f63ac9a5 100644 --- a/e

[PATCH 4/6] doc/emacs: add docstring and example for n-tree-result-format

2022-07-16 Thread David Bremner
This example is based on one originally by Jon Hurst. --- doc/notmuch-emacs.rst | 35 +++ 1 file changed, 35 insertions(+) diff --git a/doc/notmuch-emacs.rst b/doc/notmuch-emacs.rst index 49111d28..44dca384 100644 --- a/doc/notmuch-emacs.rst +++ b/doc/notmuch-emacs

[PATCH 2/6] doc/emacs: add docstring and example for n-search-result-format

2022-07-16 Thread David Bremner
When the ability to use functions was added, this example was confined to a commit message, which is not user discoverable. --- doc/notmuch-emacs.rst | 34 -- 1 file changed, 32 insertions(+), 2 deletions(-) diff --git a/doc/notmuch-emacs.rst b/doc/notmuch-emacs.rs

[PATCH 3/6] emacs: update defcustom for notmuch-search-result-format.

2022-07-16 Thread David Bremner
It seems redundant to have the previous example, since the default value is always show by describe variable. Enforce more restrictions on the keys in the alist, since arbitrary strings don't work as field names. Document that functions can be used in lieu of field names. --- emacs/notmuch-tree.

[PATCH 6/6] doc/emacs: add docstring for notmuch-unthreaded-result-format.

2022-07-16 Thread David Bremner
The main change is actually updating cross references. --- doc/notmuch-emacs.rst | 14 -- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/doc/notmuch-emacs.rst b/doc/notmuch-emacs.rst index 44dca384..e69bd23d 100644 --- a/doc/notmuch-emacs.rst +++ b/doc/notmuch-emacs.rst

[PATCH 1/6] emacs: update defcustom for notmuch-search-result-format.

2022-07-16 Thread David Bremner
It seems redundant to have the previous example, since the default value is always show by describe variable. Enforce more restrictions on the keys in the alist, since arbitrary strings don't work as field names. Document that functions can be used in lieu of field names. --- emacs/notmuch.el |

Re: Feature request: show destination in tree view when appropriate

2022-07-16 Thread David Bremner
Jon Hurst writes: > Many thanks David; just what I needed. > >> tested either, but I suppose you would need to write a function like >> author-or-to that decides for each message which of those to insert. > > For the record: > > > (defun -notmuch-authors-or-to (format-string result) > (let* ((h

Re: [PATCH v2] CLI/git: opportunistically use bindings to check for known messages

2022-07-16 Thread David Bremner
Tomi Ollila writes: > On Fri, Jul 15 2022, David Bremner wrote: > >> If the bindings are installed, use them to avoid one exec of notmuch >> search per message. > > tnx. continues to work for me where I have symlink to nmbug in ~/bin/. > some time in the future i'll investigate whether i get > p