Re: [PATCH 0/3] python/notmuch2: a few docstrings and collect_tags()

2021-01-12 Thread Michael J Gruber
Floris Bruynooghe venit, vidit, dixit 2021-01-11 21:47:33: > On Thu 07 Jan 2021 at 17:09 +, Michael J. Gruber wrote: > > As for the series: the notmuch based MUA "alot" switched to the new > > python bindings recently. collect_tags() is something I used in a > > feature PR submitted but not

Re: [PATCH 0/4] emacs: avoid type errors due to nil as content-type

2021-01-12 Thread Jonas Bernoulli
Tomi Ollila writes: > Note that messages > > 20210110140112.25930-11-jo...@bernoul.li and > 20210110140112.25930-12-jo...@bernoul.li > > have base64 -encoded content, with CRLF line endings > so those don't apply as is, but CR's from the encoded > content must be deleted. Do you know why git

How to control quoting of original message when replying?

2021-01-12 Thread divan
Greetings all :) I'm wondering, how to reply to a thread without quoting the older email? Ideally I would like to not include a quoted reply by default, unless I've selected the region, in which case the region should be inserted into the reply. I've read this answer in this stack exchange

Re: [PATCH 0/4] emacs: avoid type errors due to nil as content-type

2021-01-12 Thread Tomi Ollila
On Tue, Jan 12 2021, Jonas Bernoulli wrote: > Tomi Ollila writes: >> Note that messages >> >> 20210110140112.25930-11-jo...@bernoul.li and >> 20210110140112.25930-12-jo...@bernoul.li >> >> have base64 -encoded content, with CRLF line endings >> so those don't apply as is, but CR's from the

Re: How to control quoting of original message when replying?

2021-01-12 Thread Tomi Ollila
On Tue, Jan 12 2021, di...@santanas.co.za wrote: > Greetings all :) > > I'm wondering, how to reply to a thread without quoting the older email? In case of using emacs MUA, press Ctrl-W immediately when entered to reply buffer :D > Ideally I would like to not include a quoted reply by default,

[PATCH v2 1/3] emacs: Use pcase in notmuch-search-insert-field

2021-01-12 Thread David Edmondson
Rather than lots of string-equal calls, use the pcase macro. --- emacs/notmuch.el | 44 +++- 1 file changed, 23 insertions(+), 21 deletions(-) diff --git a/emacs/notmuch.el b/emacs/notmuch.el index 83bcee57..efbf5bd0 100644 --- a/emacs/notmuch.el +++

[PATCH v2 2/3] emacs: Allow functions in notmuch-search-result-format

2021-01-12 Thread David Edmondson
If the car of an element in notmuch-search-result-format is a function, insert the result of calling the function into the buffer. This allows a user to generate custom fields in the output of a search result. For example, with: (defun -notmuch-result-flags (format-string result) (let

[PATCH v2 0/3] Allow functions in notmuch-*-result-format

2021-01-12 Thread David Edmondson
As well as allowing headers to be specified in the various result format lists, allow functions that can be used to implement per-user logic when generating the results. David Edmondson (3): emacs: Use pcase in notmuch-search-insert-field emacs: Allow functions in notmuch-search-result-format

[PATCH v2 3/3] emacs: Allow functions in notmuch-{tree,unthreaded}-result-format

2021-01-12 Thread David Edmondson
If the car of an element in notmuch-tree-result-format or notmuch-unthreaded-result-format is a function, insert the result of calling the function into the buffer. --- emacs/notmuch-tree.el | 3 +++ 1 file changed, 3 insertions(+) diff --git a/emacs/notmuch-tree.el b/emacs/notmuch-tree.el index