Re: [PATCH v4] emacs: customizable names for search buffers

2022-01-13 Thread Jose A Ortega Ruiz
On Thu, Jan 13 2022, Tomi Ollila wrote: [...] > I am curious about this regexp, \b is matching word/non-word boundary -- so > I had to test it. > > (replace-regexp-in-string "\\b%t\\b" "repl" "foo %t bar") ;; no replacement > (replace-regexp-in-string "\\b%t\\b" "repl" "foo-%t-bar") ;; no replace

Re: [PATCH v4] emacs: customizable names for search buffers

2022-01-13 Thread Jose A Ortega Ruiz
on second thought, i think we could perhaps just go for the simpler "%t", which would allow inserting the type anywhere, even in the middle of a word... i think a problem here is that "word" or "symbol" (which is what my suggestion used) constituent depend on the definition of what's a word or sy

Re: [PATCH v4] emacs: customizable names for search buffers

2022-01-16 Thread Jose A Ortega Ruiz
On Sun, Jan 16 2022, Tomi Ollila wrote: > On Fri, Jan 14 2022, Jose A. Ortega Ruiz wrote: >> on second thought, i think we could perhaps just go for the simpler >> "%t", which would allow inserting the type anywhere, even in the middle >> of a word... i think a

Re: [PATCH v4] emacs: customizable names for search buffers

2022-01-16 Thread Jose A Ortega Ruiz
On Sun, Jan 16 2022, Kyle Meyer wrote: > Jose A Ortega Ruiz writes: > >> yeah, that's what i use and didn't notice my error above. format-spec >> is much nicer than a plain regexp subs, one can use format specifiers >> like %3t and many others, but unfortunatel

Re: [PATCH v4] emacs: customizable names for search buffers

2022-01-16 Thread Jose A Ortega Ruiz
On Sun, Jan 16 2022, Kyle Meyer wrote: [...] > Here's the last statement about the minimum Emacs version I see in > Notmuch's NEWS (for v0.31): > > The minimum supported major version of GNU Emacs is now 25.1. > > The example in my last message used 25.3 because that's the closest > version to

Re: [PATCH v2 1/1] emacs: notmuch-show-header-line: allow format strings and functions

2022-05-17 Thread Jose A Ortega Ruiz
On Tue, May 17 2022, Tomi Ollila wrote: [...] > To me it looks like some lines are indented with tabs and some spaces > (noticed as indentation looked weird to me and then started moving cursor > at the beginning of line -- there is probably a way to highlight tabs in > notmuch show buffer but..

Re: [PATCH v2 1/1] emacs: notmuch-show-header-line: allow format strings and functions

2022-05-17 Thread Jose A Ortega Ruiz
On Tue, May 17 2022, Tomi Ollila wrote: [...] > Otherwise it looks good to me (took a bit to match cond CLAUSES...) perhaps it'd be bit clearer if i factor it out in a separate function that just does the bit of setting the header line format? cheers, jao -- Not far from the invention of fire

Re: [PATCH v2 1/1] emacs: notmuch-show-header-line: allow format strings and functions

2022-05-18 Thread Jose A Ortega Ruiz
On Wed, May 18 2022, David Bremner wrote: > Jose A Ortega Ruiz writes: > >> On Tue, May 17 2022, Tomi Ollila wrote: >> >> >> [...] >> >>> To me it looks like some lines are indented with tabs and some spaces >>> (noticed as indentation looked

Re: [PATCH] emacs: notmuch-show-header-line: allow format strings and functions

2022-05-27 Thread Jose A Ortega Ruiz
On Thu, May 26 2022, David Bremner wrote: > jao writes: > >> If a string value is assigned to notmuch-show-header-line, it's used >> as a format string to be passed passed to format-spec with `%s` >> substituted by the message's subject. If a function is given, it's >> called with the subject as

Re: [PATCH] emacs: notmuch-show-header-line: allow format strings and functions

2022-06-01 Thread Jose A Ortega Ruiz
On Wed, Jun 01 2022, David Bremner wrote: > 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. Yes, good idea. I've done just that in a new version (v4) of the patch. I've also noticed t

Re: [PATCH] emacs: notmuch-show-header-line: allow format strings and functions

2022-06-01 Thread Jose A Ortega Ruiz
On Wed, Jun 01 2022, David Bremner wrote: >> Yes, good idea. I've done just that in a new version (v4) of the patch. >> I've also noticed the variable notmuch-show-header-line is already >> documented in doc/notmuch-emacs.rst (by importing its docstring): do we >> need to add documentation elsewh

Re: [PATCH v2] emacs: use message-dont-reply-to-names when composing replies

2022-06-08 Thread Jose A Ortega Ruiz
On Wed, Jun 08 2022, David Bremner wrote: > jao writes: > >> >> >> +(defun notmuch-mua--remove-dont-reply-to-names () >> + (when-let ((nr (message-dont-reply-to-names))) > > Using when-let is fine with me, but I wonder if we should follow the > advice in subr-x to do > >(eval-when-comp

Re: Notmuch emacs client is slow when opening inbox.

2022-09-17 Thread Jose A Ortega Ruiz
On Sat, Sep 17 2022, sam.he...@gmail.com wrote: > I found this from 2011, which seems to discuss the feature I want. > However, it was never merged as far as I can see: > https://notmuchmail.org/pipermail/notmuch/2011/006297.html interesting! if we were to have this, i think i'd prefer paginatio

Re: [PATCH] emacs: add notmuch-search-edit-search and notmuch-tree-edit-search

2022-09-18 Thread Jose A Ortega Ruiz
looks good, and very useful, to me, fwiw. now i'll have to free E in my keymap, which i was using for something else... i was thinking that, given how crowded those keymaps are becoming, it might be worth considering two-key chords, with the first grouping by "kind" (a la gnus); e.g. "/" could b

Re: Notmuch emacs client is slow when opening inbox.

2022-09-18 Thread Jose A Ortega Ruiz
On Sun, Sep 18 2022, David Bremner wrote: > Jose A Ortega Ruiz writes: >> >> interesting! if we were to have this, i think i'd prefer pagination >> rather than increasing the limit and keeping the old ones, and make it >> work for tree searches too. and perhap

Re: [PATCH] emacs: notmuch-tree-outline-mode

2022-09-19 Thread Jose A Ortega Ruiz
On Sun, Sep 18 2022, jao wrote: > I think the same trick i'm playing could be used to allow folding of > subtrees at more than one level (just insert several hidden > instead > of just one), but i'm not sure it would be of much use or introduce > any problem, so i've not done it here. Perhaps we

Re: [PATCH 2/2] lib: add better diagnostics for over long filenames.

2022-10-02 Thread Jose A Ortega Ruiz
On Sun, Oct 02 2022, David Bremner wrote: > Previously we just crashed with an internal error. With this change, > the caller can handle it better, although the error code could be > further improved. This works better for me, yes. A possible improvement is that, with this patch, one's only warn

Re: notmuch.el and replying to multiple emails at once

2022-11-08 Thread Jose A Ortega Ruiz
On Tue, Nov 08 2022, Alexander Adolf wrote: > Matt Armstrong writes: > >> A feature I miss from Gnus is being able to reply to multiple emails at >> once. Has anyone else found to be a missing feature? > > I have, and support your request. > > But not only to reply, but more generally to act on

Re: [PATCH v7 1/1] emacs: notmuch-tree-outline-mode

2022-12-12 Thread Jose A. Ortega Ruiz
On Mon, Dec 12 2022, David Bremner wrote: > jao writes: >>> >>> As mentioned in my previous reply, I'm still not 100% clear on why we >>> need both depth and level. >> >> i might be misremembering, but i think depth is just an auxiliarly >> argument taken by that function to know whether it's ins

Re: [PATCH v7 1/1] emacs: notmuch-tree-outline-mode

2022-12-12 Thread Jose A. Ortega Ruiz
On Mon, Dec 12 2022, David Bremner wrote: + (buffer-name notmuch-tree-message-buffer >>> >>> At first glance, depending on the buffer name seems fragile? >> >> not sure why, or how to make it more robust... > > It depends on the buffer being named after the message-id. If

Re: [PATCH v7 1/1] emacs: notmuch-tree-outline-mode

2022-12-12 Thread Jose A. Ortega Ruiz
On Mon, Dec 12 2022, David Bremner wrote: > jao writes: >>> >>> As mentioned in my previous reply, I'm still not 100% clear on why we >>> need both depth and level. >> >> i might be misremembering, but i think depth is just an auxiliarly >> argument taken by that function to know whether it's ins

Re: [PATCH v7 1/1] emacs: notmuch-tree-outline-mode

2022-12-12 Thread Jose A. Ortega Ruiz
On Mon, Dec 12 2022, Jose A. Ortega Ruiz wrote: > took a second look, and yes, it's close but not quite. there are cases > (when the message is not the first but its depth is 0) where its outline > level doesn't match the depth. we could store the depth and then repea

Re: [PATCH v9] emacs: notmuch-tree-outline-mode

2022-12-26 Thread Jose A. Ortega Ruiz
On Mon, Dec 26 2022, David Bremner wrote: > Amended by db: Copy docstring to manual and edit for presentation. Add > two tests. Thanks for the grunt work, David. Just a comment on a sloppy comment of mine below: > --- a/emacs/notmuch-tree.el > +++ b/emacs/notmuch-tree.el > @@ -1014,7 +1014,10 @

Re: Scheduling mails

2024-04-01 Thread Jose A Ortega Ruiz
Hi, On Mon, Apr 01 2024, João Pedro wrote: > I am using notmuch in Emacs, with mbsync and msmtp (I actually use > smtpmail.el in Emacs, but it uses the `sendmail' command, which is > symlinked to msmtp) and the only thing I miss from other mail clients > is the ability to schedule a mail to be s