sexp and strings

2022-06-12 Thread erik colson
Hi, I would like to define a squery in my notmuch configuration which would ease a query I often use. The query is tag:/d/ where d are decimal numbers. Now I would like to shorten this to D d wherefor I was thinking of using a macro like: D=(macro (dossier) ((tag (regex

[PATCH 1/4] test: add new corpus of duplicate messages

2022-06-12 Thread David Bremner
This corpus will be used to test a new --duplicate option for notmuch-show --- test/corpora/duplicate/msg-1-1:2, | 85 ++ test/corpora/duplicate/msg-1-2:2, | 113 ++ test/corpora/duplicate/msg-2-1:2, | 43 +++ test/corpora/duplicate/msg-2-2:2, | 140

[PATCH 4/4] WIP/emacs: replace message with different duplicate

2022-06-12 Thread David Bremner
--- emacs/notmuch-query.el | 4 +++- emacs/notmuch-show.el | 11 +++ test/T450-emacs-show.sh | 12 3 files changed, 26 insertions(+), 1 deletion(-) diff --git a/emacs/notmuch-query.el b/emacs/notmuch-query.el index 5c7f4f8d..865e3ccf 100644 --- a/emacs/notmuch-query.el

WIP: allow display of duplicate messages with notmuch show / notmuch-emacs

2022-06-12 Thread David Bremner
This is alpha quality, so in particular there is no key binding for the new function #'notmuch-show-replace-msg, which redraws with a different duplicate. On the other hand it's the first progress in a long time towards a better ui for duplicate messages, and it turns out not to be as hard as I

[PATCH 3/4] WIP: support show --duplicate for structured output

2022-06-12 Thread David Bremner
--- mime-node.c | 32 +++- notmuch-client.h | 4 +++- notmuch-reply.c | 2 +- notmuch-show.c| 2 +- test/T520-show.sh | 24 5 files changed, 52 insertions(+), 12 deletions(-) diff --git a/mime-node.c b/mime-node.c index

[PATCH 2/4] CLI/show: WIP support --duplicate for raw output

2022-06-12 Thread David Bremner
--- notmuch-client.h | 1 + notmuch-show.c | 21 - test/T210-raw.sh | 11 +++ 3 files changed, 32 insertions(+), 1 deletion(-) diff --git a/notmuch-client.h b/notmuch-client.h index 9f57ac5e..f8f987e7 100644 --- a/notmuch-client.h +++ b/notmuch-client.h @@ -75,6