Re: [PATCH 00/23] Another set up Emacs cleanup

2020-11-16 Thread David Edmondson
On Monday, 2020-11-16 at 22:28:20 +01, Jonas Bernoulli wrote: > This remove the first four commits, which have already been > applied to master. It also makes requested minor changes > to the three marked commits. For the set... Reviewed-by: David Edmondson > Jonas Bernoulli (23

Re: [PATCH v2] emacs: add notmuch-expr, sexp-style queries

2020-11-16 Thread David Edmondson
gt; (not (is "spam")) > (is "important" > > which will generate the textual query: > > "to:emacs-devel AND (NOT is:spam OR is:important) AND \"info manual\"" Reviewed-by: David Edmondson > --- > emacs/Makefile.local

Re: [PATCH 27/27] emacs: various cosmetic improvements

2020-11-15 Thread David Edmondson
? Reviewed-by: David Edmondson > --- > emacs/notmuch-address.el | 31 ++ > emacs/notmuch-hello.el | 28 + > emacs/notmuch-lib.el | 38 + > emacs/notmuch-mua.el | 10 ++--- > emacs/notmuch-tag.el | 2 +- > emacs/no

Re: [PATCH 15/27] emacs: misc doc-string improvements

2020-11-15 Thread David Edmondson
On Sunday, 2020-11-08 at 20:02:59 +01, Jonas Bernoulli wrote: Minor suggestion below... Reviewed-by: David Edmondson > --- > emacs/notmuch-address.el | 6 +++--- > emacs/notmuch-crypto.el | 4 ++-- > emacs/notmuch-mua.el | 7 --- > 3 files changed, 9 insertions(

Re: [PATCH 13/27] emacs: place complete first sentence on first doc-string line

2020-11-15 Thread David Edmondson
On Sunday, 2020-11-08 at 20:02:57 +01, Jonas Bernoulli wrote: With a suggested rewording below... Reviewed-by: David Edmondson > --- > emacs/notmuch-crypto.el | 3 +-- > emacs/notmuch-hello.el | 3 +-- > emacs/notmuch-mua.el| 11 --- > 3 files changed, 6 in

Re: [PATCH 06/27] emacs: fix old bug in notmuch-mua-mail

2020-11-15 Thread David Edmondson
n'. > > 1: 7e20d26480553f57d53bd9ec28cae163c1ac91e3 >emacs: Fix mail composition under Emacs 23 Reviewed-by: David Edmondson > --- > emacs/notmuch-mua.el | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/emacs/notmuch-mua.el b/emacs/notmuch-mua.el

Re: Problems with unicode characters under emacs and Xorg

2020-11-02 Thread David Edmondson
On Monday, 2020-11-02 at 04:26:27 -08, David Mazieres wrote: > dm-list-email-notm...@scs.stanford.edu writes: > >> I just installed the ttf-symbola package from AUR and ran fc-cache (not >> sure if necessary). Now the problem is completely gone. Not only that, >> but I even get the little memo

Re: Problems with unicode characters under emacs and Xorg

2020-11-02 Thread David Edmondson
On Monday, 2020-11-02 at 01:21:00 -08, dm-list-email-notm...@scs.stanford.edu wrote: > David Edmondson writes: > >> I haven't seen this. Threads with a lot of complex HTML content (lots of >> nested tables, for example) can take a long time to render for me, but &g

Re: Problems with unicode characters under emacs and Xorg

2020-11-02 Thread David Edmondson
On Sunday, 2020-11-01 at 22:57:58 -08, David Mazieres wrote: > I usually use notmuch in emacs under X windows on arch linux. Recently, > I've had a problem where some screens in notmuch take several minutes of > 100% CPU time to load. For example, I'll just open a search, and emacs > will

Re: emacs: `message-send-hook` being called twice

2020-08-18 Thread David Edmondson
On Tuesday, 2020-08-18 at 12:23:24 +10, Tim Quelch wrote: > Hi all, > > I've been working through a bug that I've been having with org-msg > (https://github.com/jeremy-compostella/org-msg/issues/58#issuecomment-675177076) > and it looks like a bug in the internals of notmuch. > > It appears as

Re: [PATCH v2] Emacs: Indent first header line only when indentation is turned on

2020-08-10 Thread David Edmondson
> > This change modifies notmuch-show-insert-headerline function so that > it doesn't indent the first header line if notmuch-show-indent-content > variable is nil. Reviewed-by: David Edmondson > --- > emacs/notmuch-show.el | 5 - > 1 file changed, 4 insertions(+), 1 del

Re: [PATCH] Emacs: Indent first header line only when indentation is turned on

2020-08-10 Thread David Edmondson
On Sunday, 2020-08-09 at 22:01:44 +03, Teemu Likonen wrote: > Previously in message-show mode message's first header line (From > header) was always indented, even if user had turned thread > indentation off with "<" (notmuch-show-toggle-thread-indentation) > command. > > This change modifies

Re: [PATCH v5] Emacs: Ensure left-to-right display for message headers

2020-08-10 Thread David Edmondson
On Sunday, 2020-08-09 at 23:12:28 +03, =?utf-8?Q?T=E2=80=AEomi?= Ollila wrote: > How about this =D Your point being that the code sanitising the displayed header could do better? > (Sorry how the headers might look...) > > From: contains U+202E (LEFT-TO-RIGHT OVERRIDE) (in

Re: [PATCH v5] Emacs: Ensure left-to-right display for message headers

2020-08-07 Thread David Edmondson
ph is always rendered in left-to-right mode. > > See Emacs Lisp reference manual section "(elisp) Bidirectional > Display" for more info. Reviewed-by: David Edmondson > --- > emacs/notmuch-show.el | 12 +--- > 1 file changed, 9 insertions(+), 3 deletions

Re: [PATCH v3] Emacs: Force left-to-right display for message headers

2020-08-05 Thread David Edmondson
On Wednesday, 2020-08-05 at 12:40:06 +03, Teemu Likonen wrote: > * 2020-08-05 09:45:23+01, David Edmondson wrote: > >> I've no idea if this is the appropriate approach to addressing this, but >> the resulting behaviour is obviously an improvement over what happens &

Re: [PATCH v3] Emacs: Force left-to-right display for message headers

2020-08-05 Thread David Edmondson
On Tuesday, 2020-08-04 at 21:02:25 +03, Teemu Likonen wrote: > Insert invisible U+200E LEFT-TO-RIGHT MARK at the beginning of message > headers. It forces message headers to display as left-to-right text > even if there are strong directional characters in header's values. > > See Emacs Lisp

Re: [PATCH] emacs: notmuch-search: avoid wiping out buffer-local variables

2020-07-22 Thread David Edmondson
On Wednesday, 2020-07-22 at 08:11:32 -07, Sean Whitton wrote: > Reviewed-by: David Edmondson > --- > emacs/notmuch.el | 6 +- > 1 file changed, 5 insertions(+), 1 deletion(-) > > diff --git a/emacs/notmuch.el b/emacs/notmuch.el > index dd18f2e1..c97997fe 100644 >

Re: notmuch.el: notmuch-search: avoid wiping out buffer-local variables

2020-07-22 Thread David Edmondson
On Tuesday, 2020-07-21 at 16:03:27 -07, Sean Whitton wrote: > Hello, > > I have some code to cycle through a list of searches. The remaining > searches are stored in a buffer-local variable, working something like > this (simplified): > > (defun spw/next-unread-group () >

Re: notmuch-emacs: Highlight the file attachment

2020-06-19 Thread David Edmondson
On Thursday, 2020-06-18 at 14:11:20 +02, Jörg Volbers wrote: > Hi there, > > When showing a message with notmuch-show, I'd love to highlight > the file attachment part. I want to distinguish them from the > other mml stuff which I usually do not need to care about. Is > there any easy way to

Re: Lazily loading notmuch into Emacs

2020-06-02 Thread David Edmondson
On Monday, 2020-06-01 at 10:36:16 -07, Sean Whitton wrote: > Hello, > > I don't want to put (require 'notmuch) into my Emacs init because that > will slow down initial Emacs startup a fair bit, especially since my > (file which is equivalent to) notmuch-config.el does quite a bit of > processing

Re: [PATCH] emacs: Respect `load-prefer-newer` when loading `notmuch-init-file'

2020-06-01 Thread David Edmondson
On Sunday, 2020-05-31 at 23:17:04 -07, Sean Whitton wrote: > Before this change, `load-prefer-newer' was ignored. > > Set NOERROR and MUST-SUFFIX arguments of `load' to t, and NOSUFFIX > argument to nil, to preserve the behaviour of the deleted `let' form. Reviewed-by: Dav

Re: Emacs: make browsing URLs friendlier with Helm

2020-04-25 Thread David Edmondson
On Friday, 2020-04-24 at 15:46:20 -04, Ori wrote: > Hi, > > This is a fairly small point and was easy for me to locally address, and > that in itself may be valuable in sharing, but I wondered if it would be > worth putting a change behind a defcustom option, or depending on how this > works with

Re: [PATCH 4/4] emacs: Use `cl-lib' instead of deprecated `cl'

2020-04-16 Thread David Edmondson
from GNU Elpa. > > We need to explicitly require the `pcase' library because > `pcase-dolist' was not autoloaded until Emacs 25.1. Reviewed-by: David Edmondson > --- > emacs/notmuch-company.el | 5 +- > emacs/notmuch-draft.el | 2 +- > emacs/notmuch-hello.el |

Re: [PATCH] emacs: introduce notmuch-search-by-tag

2020-04-14 Thread David Edmondson
use in "notmuch-hello". It is a more > convenient way to search a tag than expanding the list of all tags. I > also noticed many saved searches people use are simply tags. Reviewed-by: David Edmondson > --- > devel/emacs-keybindings.org | 2 +- > emacs/notmuch-lib.el| 1

Re: [PATCH] emacs: use def instead of initial-input for notmuch-show-browse-urls

2020-04-14 Thread David Edmondson
can yank the > default value into the minibuffer easily using M-n. > > Additionally collection is now all urls, rather than all but the > first. I'm not sure why "(cdr urls)" was previously done. Reviewed-by: David Edmondson > --- > emacs/notmuch-show.el | 2 +- >

Re: notmuch-crypto.el: "‘notmuch-show-get-message-id’ is not known to be defined"

2020-03-18 Thread David Edmondson
On Wednesday, 2020-03-18 at 10:49:14 +01, Örjan Ekeberg wrote: > Daniel Kahn Gillmor writes: > >> When building the current version of notmuch on debian testing/unstable, >> i see the following warning: >> >> ``` >> EMACS emacs/notmuch-crypto.elc >> >> In end of data: >>

Re: [PATCH v3 0/7] Port notmuch-show's x/X bindings to notmuch-tree

2020-02-21 Thread David Edmondson
On Friday, 2020-02-21 at 09:06:46 -08, William Casarin wrote: > Daniel Kahn Gillmor writes: > >> On Sat 2019-12-28 10:01:17 -0500, William Casarin wrote: >>> These patches bring notmuch-tree more in line with the user experience >>> of notmuch-show by adding the x/X bindings. >> >> It looks like

Re: Identical messages in multiple folders or email accounts

2020-01-06 Thread David Edmondson
On Monday, 2020-01-06 at 06:04:37 -07, Nicolas Bock wrote: > Hi, > > In the case of identical messages in multiple folders, is it possible > to tag a specific copy? No. > All my attempts to limit `notmuch tag` and `notmuch search` to a > particular folder have failed so far. > > $ notmuch

Re: [PATCH] emacs: don't start processes stopped

2020-01-03 Thread David Edmondson
correctly (apparently). > > This also shouldn't be necessary as sentinels will not be called > unless emacs is idle or waiting for input. Therefore, the > `process-put' calls immediately following the `make-process' call > should always complete before the sentinel is first c

Re: [PATCH v3 7/7] emacs/tree: add x/X bindings

2019-12-30 Thread David Edmondson
o q. > > Signed-off-by: William Casarin Reviewed-by: David Edmondson > --- > emacs/notmuch-tree.el | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/emacs/notmuch-tree.el b/emacs/notmuch-tree.el > index e9c0433c..987cc81e 100644 > --- a/e

Re: [PATCH v3 6/7] emacs/tree: add notmuch-tree-archive-thread-then-exit

2019-12-30 Thread David Edmondson
On Saturday, 2019-12-28 at 10:01:23 -05, William Casarin wrote: > This is the notmuch-tree version of > notmuch-show-archive-thread-then-exit > > Signed-off-by: William Casarin Reviewed-by: David Edmondson > --- > emacs/notmuch-tree.el | 6 ++ > 1 file changed, 6 i

Re: [PATCH v3 5/7] emacs/tree: add notmuch-tree-archive-message-than-next-or-exit

2019-12-30 Thread David Edmondson
On Saturday, 2019-12-28 at 10:01:22 -05, William Casarin wrote: > This is the notmuch-tree version of > notmuch-show-archive-message-than-next-or-exit. > > Signed-off-by: William Casarin Reviewed-by: David Edmondson > --- > emacs/notmuch-tree.el | 30 --

Re: [PATCH v3 4/7] emacs/tree: add kill-both prefix argument to notmuch-tree-quit

2019-12-30 Thread David Edmondson
On Saturday, 2019-12-28 at 10:01:21 -05, William Casarin wrote: > This allows us to close both windows at the same time. > > Signed-off-by: William Casarin Reviewed-by: David Edmondson > --- > emacs/notmuch-tree.el | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions

Re: [PATCH v3 3/7] emacs/tree: add notmuch-tree-matching-message

2019-12-30 Thread David Edmondson
On Saturday, 2019-12-28 at 10:01:20 -05, William Casarin wrote: > This functions removes some duplicate logic between > notmuch-tree-{next,prev}-matching-message > > We do this because we will be adding some additional logic similar to > the notmuch-show-next-open-message function, and it will

Re: [PATCH v3 2/7] emacs/tree: add notmuch-tree-goto-matching-message

2019-12-30 Thread David Edmondson
thread to show. > > Signed-off-by: William Casarin Reviewed-by: David Edmondson > --- > emacs/notmuch-tree.el | 18 ++ > 1 file changed, 14 insertions(+), 4 deletions(-) > > diff --git a/emacs/notmuch-tree.el b/emacs/notmuch-tree.el > index d262ba26..18fdb1

Re: [PATCH v3 1/7] emacs/tree: return true if a thread was found in next-thread

2019-12-30 Thread David Edmondson
On Saturday, 2019-12-28 at 10:01:18 -05, William Casarin wrote: > This will allow us to pop back to parent buffers when there are no > more threads to jump to. > > Signed-off-by: William Casarin Reviewed-by: David Edmondson > --- > emacs/notmuch-tree.el | 5 - &g

Re: [PATCH 1/2] legacy-display: accept text/plain legacy display parts

2019-12-24 Thread David Edmondson
On Tuesday, 2019-12-24 at 10:54:46 -05, Daniel Kahn Gillmor wrote: > On Tue 2019-12-24 10:59:09 +0000, David Edmondson wrote: >> Patch looks good, though I would quite like there to be a comment in the >> code. Something simple like: >> >> /* text/rfc822-headers

Re: [PATCH 1/2] legacy-display: accept text/plain legacy display parts

2019-12-24 Thread David Edmondson
On Monday, 2019-12-23 at 12:39:26 -05, Daniel Kahn Gillmor wrote: > https://www.ietf.org/id/draft-autocrypt-lamps-protected-headers-02.html > Makes it clear that the "Legacy Display" part of an encrypted message > with protected headers can (and indeed, should) be of content-type > text/plain,

Re: [PATCH 0/2] Limit attachment check to stop before forwarded message

2019-12-13 Thread David Edmondson
On Friday, 2019-12-13 at 00:35:34 +01, ekeb...@kth.se wrote: > From: Örjan Ekeberg > > This is a simple patch to notmuch-mua-attachment-check to make it stop > searching for mathing "attachment"-words when reaching a forwarded > message (or anything starting with "\n<#"). This avoids the false

Re: message.el and browse-url.el interaction [was: Re: BUG: notmuch-emacs-mua wrong signing MML placement]

2019-12-13 Thread David Edmondson
On Friday, 2019-12-13 at 09:33:11 +02, Tomi Ollila wrote: > Small update from my front -- looked message.el and (message-setup-1) > there in particular, and then tested the following code: > > (with-demoted-errors > (require 'notmuch) > (let ((message-signature-setup-hook

[PATCH] emacs: Add notmuch-wash-citation-lines-elided-min and use it

2019-12-12 Thread David Edmondson
When collapsing citations, if the collapsed region is less than `notmuch-wash-citation-lines-elided-min' lines long, don't bother collapsing it and simply show all of the lines. --- emacs/notmuch-wash.el | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git

Re: version 4: Retrieve GPG keys asynchronously.

2019-12-12 Thread David Edmondson
On Wednesday, 2019-09-11 at 21:32:56 -04, Daniel Kahn Gillmor wrote: > In id:87blw1rldy@tethera.net, bremner identified two of my edits > breaking dme's series that permits asynchronous retrieval of OpenPGP > keys. > > This is a revision of that series that should apply to the current >

message.el and browse-url.el interaction [was: Re: BUG: notmuch-emacs-mua wrong signing MML placement]

2019-12-12 Thread David Edmondson
On Wednesday, 2019-12-11 at 13:55:16 -05, Robbie Harwood wrote: > My emacs config contains `(add-hook 'message-setup-hook > 'mml-secure-sign-pgpmime)` as recommended in the emacstips > https://notmuchmail.org/emacstips/#index14h2 > > However, when I run (something like): > > notmuch-emacs-mua

Re: script to move messages according to tags

2019-12-11 Thread David Edmondson
On Wednesday, 2019-12-11 at 16:28:20 +01, Alan Schmitt wrote: > I do have one small question: how do you deal with mails that have > duplicates? For instance, when I send a mail to a mailing list, I end > up with both the sent email and the one I later receive from the > list. If I tag the send

Re: moving the config into the database [was: Re: [PATCH] Display extra headers for emacs-mua - db config option]

2019-12-11 Thread David Edmondson
On Wednesday, 2019-12-11 at 10:00:07 -04, David Bremner wrote: > David Edmondson writes: > >> It seems that only “notmuch new” is currently prepared to create a new >> database, but it will also import all of my email before I have a chance >> to set the above pa

Re: moving the config into the database [was: Re: [PATCH] Display extra headers for emacs-mua - db config option]

2019-12-11 Thread David Edmondson
On Tuesday, 2019-12-10 at 08:11:56 -08, Jameson Graef Rollins wrote: > Fwiw I support dkg's idea to store the config in the database itself. I > think that's a clean simplification that makes a lot of sense. I'm not inherently against this, but I'm unsure exactly how it would work. For

rfc: notmuch-status.el - notmuch status reporting

2019-12-05 Thread David Edmondson
I've been using something like this code for a few years, so I figured that some other people might also want it. It's intended as an in-emacs mail notifier, though in most cases I don't actually have the “notifier” part running, I just use a key sequence to query the state. The idea is to layer

Re: [BUG] notmuch-emacs: spoils sendmail -f with emacs 27 commit 3a59cc84069376802ba8fd731b524d78db58262c and later

2019-12-04 Thread David Edmondson
Gregor, does Stefan's change fix your problem? dme. -- So tap at my window, maybe I might let you in. ___ notmuch mailing list notmuch@notmuchmail.org https://notmuchmail.org/mailman/listinfo/notmuch

Re: [BUG] notmuch-emacs: spoils sendmail -f with emacs 27 commit 3a59cc84069376802ba8fd731b524d78db58262c and later

2019-12-03 Thread David Edmondson
On Tuesday, 2019-12-03 at 15:39:47 -05, Stefan Monnier wrote: >> disaster-area ~/s/emacs % ./src/emacs -Q -nw -batch --eval "(progn (require >> 'message) (setq mail-specify-envelope-from t mail-envelope-from 'header) >> (message \"%s\" message-sendmail-envelope-from))" >> nil >> disaster-area

Re: [BUG] notmuch-emacs: spoils sendmail -f with emacs 27 commit 3a59cc84069376802ba8fd731b524d78db58262c and later

2019-12-03 Thread David Edmondson
On Tuesday, 2019-12-03 at 20:15:02 +01, Gregor Zattler wrote: >> As best I can determine, this relates to the order in which things are >> loaded. >> >> If you load message.el before setting `mail-specify-envelope-from', >> things are broken (sorry for the long lines): >> >> disaster-area

Re: [BUG] notmuch-emacs: spoils sendmail -f with emacs 27 commit 3a59cc84069376802ba8fd731b524d78db58262c and later

2019-12-03 Thread David Edmondson
On Sunday, 2019-12-01 at 18:10:59 +01, Gregor Zattler wrote: > [@Stefan: FYI] > Dear notmuch developers, > > I use notmuch-emacs configured with > (setq mail-specify-envelope-from t) > (setq mail-envelope-from 'header) > (setq send-mail-function 'sendmail-send-it) > > this should/used to invoke

[PATCH] emacs: A prefix argument kills rather than browsing URLs

2019-12-02 Thread David Edmondson
In `notmuch-show', the "B" key (notmuch-show-browse-urls) will kill the URL if called with a prefix argument rather than browsing directly. --- emacs/notmuch-show.el | 14 +- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el

Re: Bug: ol-notmuch.el: calls `notmuch-show' with arbitrary search query

2019-12-01 Thread David Edmondson
On Friday, 2019-11-29 at 13:01:00 -07, Sean Whitton wrote: > On Wed 27 Nov 2019 at 08:52PM +00, David Edmondson wrote: >> It's a lot to ask, I know, but if you could provide a specific set of >> messages with a corresponding initial query that fails for you after >> limitin

Re: [PATCH v2 2/8] emacs/tree: add notmuch-tree-goto-matching-message

2019-11-28 Thread David Edmondson
On Thursday, 2019-11-28 at 08:13:55 -08, William Casarin wrote: > This function captures some common logic when jumping to matching > messages in notmuch-tree mode. > > We also add a new return value (t or nil), that indicates if there was > a next matching message in the thread to show. > >

Re: [PATCH v2 1/8] emacs/tree: return true if a thread was found in next-thread

2019-11-28 Thread David Edmondson
On Thursday, 2019-11-28 at 08:13:54 -08, William Casarin wrote: > This will allow us to pop back to parent buffers when there are no > more threads to jump to. > > Signed-off-by: William Casarin > --- > emacs/notmuch-tree.el | 8 ++-- > 1 file changed, 6 insertions(+), 2 deletions(-) > >

Re: Bug: ol-notmuch.el: calls `notmuch-show' with arbitrary search query

2019-11-27 Thread David Edmondson
On Wednesday, 2019-11-27 at 10:42:59 -07, Sean Whitton wrote: > On Wed 27 Nov 2019 at 01:08PM +00, David Edmondson wrote: > >> On Tuesday, 2019-11-26 at 16:25:29 -07, Sean Whitton wrote: >> >>> On Tue 26 Nov 2019 at 10:52PM +00, David Edmondson wrote: >>> &g

Re: Bug: ol-notmuch.el: calls `notmuch-show' with arbitrary search query

2019-11-27 Thread David Edmondson
On Tuesday, 2019-11-26 at 16:25:29 -07, Sean Whitton wrote: > On Tue 26 Nov 2019 at 10:52PM +00, David Edmondson wrote: > >> The poor behaviour is just a side effect of the way that queries are >> composed to implement the filter functionality. Does the attached patch >>

Re: Bug: ol-notmuch.el: calls `notmuch-show' with arbitrary search query

2019-11-26 Thread David Edmondson
On Tuesday, 2019-11-26 at 14:57:28 -07, Sean Whitton wrote: > On Tue 26 Nov 2019 at 08:05PM +00, David Edmondson wrote: > >> Could you explain how you were using `notmuch-show-thread-id' in a way >> that was broken by the presence of an arbitrary query? > > I've observed t

Re: Bug: ol-notmuch.el: calls `notmuch-show' with arbitrary search query

2019-11-26 Thread David Edmondson
On Thursday, 2019-11-21 at 14:37:44 -07, Sean Whitton wrote: > The function `org-notmuch-follow-link' in {org,ol}-notmuch.el calls > `notmuch-show' with an arbitrary notmuch search query. However, the > docstring for `notmuch-show' specifies that a notmuch thread ID, rather > than an arbitrary

Re: [PATCH 5/7] emacs/tree: add notmuch-tree-archive-message-than-next-or-exit

2019-11-18 Thread David Edmondson
On Sunday, 2019-11-17 at 15:17:58 -08, William Casarin wrote: > I'll push out a v2 later if this gets enough Concept ACKs. The changes make sense to me in principle, but I don't use notmuch-tree. It would be good if someone who does could try them and comment. dme. -- I do believe it's Madame

Re: wish: notmuch-emacs: handle RFC822 attachments as email (allow for replying)

2019-11-13 Thread David Edmondson
On Wednesday, 2019-11-13 at 09:42:26 +01, Gregor Zattler wrote: > Dear notmuch developers, > > notmuch-emacs shows rfc822 attachments as emails which is nice, > but with point in such attachment it is not possible to act on it > as an email as for instance reply to it. > > It would be nice if

Re: [PATCH] Add --message-headers flag to notmuch-show

2019-11-13 Thread David Edmondson
On Tuesday, 2019-11-12 at 17:19:13 -05, Daniel Kahn Gillmor wrote: > Are you sure you want the configuration in the config file and not in > the database itself? That's fine with me. dme. -- So tap at my window, maybe I might let you in. ___ notmuch

Re: [PATCH] emacs: bind C-u Z to notmuch-tree-from-search-thread

2019-11-13 Thread David Edmondson
On Wednesday, 2019-11-13 at 00:00:04 -08, William Casarin wrote: > This is an unbound function that is quite useful. It opens a selected > thread in notmuch-tree from the current search query. Seems fine to me. Not crazy about the binding, but it will suffice. > Signed-off-by: William Casarin

Re: Unread handling

2019-11-12 Thread David Edmondson
On Tuesday, 2019-11-12 at 05:17:46 -08, William Casarin wrote: David Edmondson writes: On Monday, 2019-11-11 at 00:16:17 +01, Johan Parin wrote: I'm trying instead to use the tree view, this seems to me the more natural way to view threads. So I immediately do `Z' whenever I enter a thread

Re: Unread handling

2019-11-11 Thread David Edmondson
On Monday, 2019-11-11 at 00:16:17 +01, Johan Parin wrote: I'm probably doing something wrong but I find myself frustrated with the handling of unread in the emacs-mua. In notmuch-search I found the default bold face for unread of notmuch-search-unread-face not enough to make them stand out

Re: [PATCH] Fix format_headers_sprinter to return all headers (v2)

2019-11-10 Thread David Edmondson
On Saturday, 2019-11-09 at 23:13:58 +01, Johan Parin wrote: +const char* interesting_headers[] = { + "Maildir", "Mailing-list", "Tags", "Attachments", "Signature", + "Decryption", "User-agent", "X-Mailer"}; It would be convenient to specify these in ~/.notmuch-config rather than

Re: notmuch-mode and org-capture

2019-11-03 Thread David Edmondson
On Sunday, 2019-11-03 at 01:04:47 +01, Leo Gaspard wrote: Hello, I have just come to notice that, when attempting to use org-capture in a notmuch-tree window with a message opened in the split screen below, the capture template doesn't actually have the link or the various replacements that

Re: [PATCH] Map missing content-type to "" instead of nil

2019-10-25 Thread David Edmondson
On Thursday, 2019-10-24 at 16:08:00 -07, kei...@keithp.com wrote: From: Keith Packard When a message part has no content type, a 'nil' value results in many failures when passed to functions like 'downcase'. Instead of crashing, map a nil value to the empty string, "", so that the show

[PATCH v1 2/2] emacs: Bind "u" to jump to the parent message in a thread

2019-08-29 Thread David Edmondson
--- emacs/notmuch-show.el | 55 +++ 1 file changed, 55 insertions(+) diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el index 1e3834f2..7c50d2cd 100644 --- a/emacs/notmuch-show.el +++ b/emacs/notmuch-show.el @@ -1173,6 +1173,60 @@ is t, hide the

[PATCH v1 0/2] emacs/show: Add a binding to go up.

2019-08-29 Thread David Edmondson
emacs/show: Add a binding to go up when viewing a thread of messages. The implementation is a bit ropey and perhaps expensive, but it seems to work for me. David Edmondson (2): emacs: Stash the currently shown forest in a buffer local variable emacs: Bind "u" to jump to the pare

[PATCH v1 1/2] emacs: Stash the currently shown forest in a buffer local variable

2019-08-29 Thread David Edmondson
--- emacs/notmuch-show.el | 4 1 file changed, 4 insertions(+) diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el index e13ca3d7..1e3834f2 100644 --- a/emacs/notmuch-show.el +++ b/emacs/notmuch-show.el @@ -1165,8 +1165,12 @@ is t, hide the part initially and show the button."

Re: [emacs] Auto-rotate pictures

2019-06-11 Thread David Edmondson
On Wednesday, 2019-04-03 at 11:10:54 +02, Pierre Neidhardt wrote: > Some pictures embed "exif" metadata with autorotate information. > I know that mu4e can autorotate inlined pictures. > I guess it wouldn't be too hard to implement this for Emacs Notmuch > either. Can you send me (directly, not

Re: [PATCH] NEWS: add Emacs front end changes by various people.

2019-06-06 Thread David Edmondson
On Wednesday, 2019-06-05 at 20:48:39 -03, David Bremner wrote: > +Bind `B` to browse URLs in current message. > + > +Bind 'g' to refresh the current notmuch buffer. There is formatting inconsistency here. dme. -- No proper time of day. ___ notmuch

Re: [PATCH] python: support relative path in default database

2019-04-20 Thread David Edmondson
Looks good. Sorry for missing this. On Friday, 2019-04-19 at 10:56:59 +07, Doan Tran Cong Danh wrote: > From notmuch 0.28, notmuch support relative database path in > notmuch-config(1), but python binding haven't taught this yet. > > afew denied to work with a perfectly fine notmuch-config due

Re: [PATCH] emacs: Add missing type and group to defcustom variable

2019-04-15 Thread David Edmondson
Obviously good. On Monday, 2019-04-15 at 15:35:19 +02, Örjan Ekeberg wrote: > Added the type 'regexp and group 'notmuch-send as properties to the > customizable variable notmuch-mua-attachment-regexp. > --- > emacs/notmuch-mua.el | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > >

Re: Reply inline in notmuch-show buffer, "mu4e-conversation style"

2019-04-10 Thread David Edmondson
On Wednesday, 2019-04-10 at 15:27:14 +02, Pierre Neidhardt wrote: > David Edmondson writes: > >> Yes. My argument was not that we shouldn't have this, just that I wonder >> if it results in a good workflow for people who are not using >> notmuch/mu4e/gmail (or any

Re: Save multiple / all attachments without prompting (unless overwriting)

2019-04-10 Thread David Edmondson
On Wednesday, 2019-04-10 at 12:35:37 +02, Pierre Neidhardt wrote: > Ping! :) > Anyone? Nothing currently available does it. You might be able to avoid mm altogether and go direct to notmuch to save the parts, which might make things a bit easier to control from the front end. Iterate over the

Re: [PATCH v2 4/4] test: add test for checking forwarded messages

2019-04-08 Thread David Edmondson
On Friday, 2019-04-05 at 01:01:26 +02, Örjan Ekeberg wrote: > Add test of forwarding messages from within emacs. > The first test checks that a references header is properly > added to the new message. The second test checks that the > send-hook of the forwarding message adds a forwarded-tag >

Re: Cycle-expand all org-style in show-mode and search all

2019-04-03 Thread David Edmondson
On Wednesday, 2019-04-03 at 13:24:28 +02, Pierre Neidhardt wrote: >>> Related: is it possible to search the entire conversation, even when >>> messages are folded? >> >> No. >> >>> If not, the workaround would be to temporarily expand-all (once the >>> above feature is implemented), and search

Re: Cycle-expand all org-style in show-mode and search all

2019-04-03 Thread David Edmondson
On Wednesday, 2019-04-03 at 11:14:42 +02, Pierre Neidhardt wrote: > Is it possible to cycle-expand-all subtrees in show-mode, à-la Org? What do you mean by “subtrees”? M-RET should open all of the messages in the thread, but it doesn't do anything about regions that are hidden within messages

Re: Reply inline in notmuch-show buffer, "mu4e-conversation style"

2019-04-03 Thread David Edmondson
On Wednesday, 2019-04-03 at 11:12:27 +02, Pierre Neidhardt wrote: > Anyone interested? Should I send a patch? I couldn't figure out when I'd want to use this, as yanking text from the existing notmuch-show buffer seems straightforward. Maybe something akin to gnus-dired-mode would be

Re: [PATCH] NEWS: deprecate Emacs 24

2019-03-28 Thread David Edmondson
On Thursday, 2019-03-28 at 08:31:03 -03, David Bremner wrote: > --- > NEWS | 6 ++ > 1 file changed, 6 insertions(+) > > diff --git a/NEWS b/NEWS > index 9fcb57ed..5dffd5a2 100644 > --- a/NEWS > +++ b/NEWS > @@ -7,6 +7,12 @@ Command Line Interface > `notmuch show` now supports --body=false

Re: [PATCH v1 1/1] emacs: Easy access to URLs mentioned in the current message

2019-03-28 Thread David Edmondson
On Thursday, 2019-03-28 at 08:23:37 -03, David Bremner wrote: > David Edmondson writes: > > >> +(defun notmuch-show--browse-urls () >> + "Offer to browse any URLs in the current message." >> + (interactive) >> + (let ((urls (notmuch-show--gather-u

Re: [PATCH v1 1/1] emacs: Add `notmuch-wash-cut-here'

2019-03-20 Thread David Edmondson
On Wednesday, 2019-03-20 at 09:52:24 +01, Pierre Neidhardt wrote: > Question: Is is possible to configure the wash function to be expanded > by default? Probably the simplest approach would be to have `notmuch-wash-region-to-button' return the button it creates to the caller, which could then

[PATCH v1 1/1] emacs: Add `notmuch-wash-cut-here'

2019-03-19 Thread David Edmondson
Add `notmuch-wash-cut-here' as a washing function that can be added to `notmuch-show-insert-text/plain-hook' to excerpt 'cut here' sections, such as those generated by `message-mark-inserted-region'. --- emacs/notmuch-wash.el | 31 +++ 1 file changed, 31 insertions(+)

Re: How to show embedded images in HTML emails?

2019-02-27 Thread David Edmondson
On Tuesday, 2019-02-26 at 15:49:10 -07, yangsheng6810 wrote: > I am a new comer to notmuch switching from mu4e. Most of notmuch feels really > great, until I tried to open some HTML emails with images in it. I tried > different setting of =mm-text-html-renderer=, the best I got was with >

Re: non-ascii email forwarding failures

2019-02-26 Thread David Edmondson
On Tuesday, 2019-02-26 at 00:33:33 -05, Antoine Beaupré wrote: > So I have no idea what's going on with mail forwards, but this is the > kind of stuff that happens to me all the time and I can't describe > correctly enough to file a bug. > > The gist of it is that, under some weird circumstances,

Re: [PATCH] emacs: use ".ps" suffix for PostScript temporary files.

2019-01-30 Thread David Edmondson
On Wednesday, 2019-01-30 at 07:20:31 -04, David Bremner wrote: > Joerg Jaspert [1] reported problems with evince reading unsuffixed > temporary files in Debian. Looks good. > > [1]: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=920856 > --- > emacs/notmuch-print.el | 4 ++-- > 1 file

Re: Threading of forwarded messages

2019-01-24 Thread David Edmondson
On Wednesday, 2019-01-23 at 23:46:24 +02, Tomi Ollila wrote: > On Tue, Jan 22 2019, Örjan Ekeberg wrote: >> Adding to the wishlist; it would be nice if forwarded messages could >> also be tagged as "forwarded", much like how replied messages are tagged >> "replied". I guess this could be done

Re: [PATCH v3 1/4] emacs: Asynchronous retrieval of GPG keys

2019-01-19 Thread David Edmondson
On Monday, 2019-01-14 at 22:08:14 -04, David Bremner wrote: > David Edmondson writes: > >> Rather than blocking emacs while gpg does its' thing, by default run >> key retrieval asynchronously, possibly updating the display of the >> message on successful completion.

Re: emacs slow with large threads

2019-01-19 Thread David Edmondson
On Saturday, 2019-01-19 at 00:03:18 +00, Landry, Walter wrote: > Hello Everyone, > > I am using the emacs frontend to notmuch. It has mostly been a pleasant > experience, but I am having a problem with large threads. Essentially, > when I try to view a large thread, the machine locks up for

[PATCH v2 3/3] emacs: Process format=flowed text

2018-12-22 Thread David Edmondson
If a text/plain part is declared as format=flowed, apply the appropriate transformation for display using flow-fill.el. --- emacs/notmuch-show.el | 3 ++- emacs/notmuch-wash.el | 14 ++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/emacs/notmuch-show.el

[PATCH v2 0/3] support for format=flowed text display

2018-12-22 Thread David Edmondson
the schemata. David Edmondson (3): notmuch: Include the format parameter of text/plain parts emacs: Pass the part to text/plain hook functions emacs: Process format=flowed text devel/schemata| 2 ++ emacs/notmuch-show.el | 5 +++-- emacs/notmuch-wash.el | 24

[PATCH v2 2/3] emacs: Pass the part to text/plain hook functions

2018-12-22 Thread David Edmondson
Some text/plain hook functions may wish to access the details of the part that is being manipulated. --- emacs/notmuch-show.el | 2 +- emacs/notmuch-wash.el | 10 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el index

[PATCH v2 1/3] notmuch: Include the format parameter of text/plain parts

2018-12-22 Thread David Edmondson
During formatted output, if a content type of a text/plain part has a "format" paramter, include it in the output. --- devel/schemata | 2 ++ notmuch-show.c | 13 + 2 files changed, 15 insertions(+) diff --git a/devel/schemata b/devel/schemata index 42b1bcf3..194933d4 100644 ---

Re: [PATCH v1 1/3] notmuch: Include the format parameter of text/plain parts

2018-12-22 Thread David Edmondson
On Saturday, 2018-12-22 at 07:41:37 +09, David Bremner wrote: > David Edmondson writes: > >> During formatted output, if a content type of a text/plain part >> has a "format" paramter, include it in the output. >> --- >> notmuch-show.c | 13 +++

[PATCH v1 1/3] notmuch: Include the format parameter of text/plain parts

2018-12-21 Thread David Edmondson
During formatted output, if a content type of a text/plain part has a "format" paramter, include it in the output. --- notmuch-show.c | 13 + 1 file changed, 13 insertions(+) diff --git a/notmuch-show.c b/notmuch-show.c index 07e9a5db..92d18bb8 100644 --- a/notmuch-show.c +++

[PATCH v1 3/3] emacs: Process format=flowed text

2018-12-21 Thread David Edmondson
If a text/plain part is declared as format=flowed, apply the appropriate transformation for display using flow-fill.el. --- emacs/notmuch-show.el | 3 ++- emacs/notmuch-wash.el | 14 ++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/emacs/notmuch-show.el

[PATCH v1 0/3] support for format=flowed display

2018-12-21 Thread David Edmondson
This patch improves the display of format=flowed text parts. I suspect that format=flowed display and some of the other content washing might interact in annoying ways, but the only way to be sure is to see how people feel about the results. David Edmondson (3): notmuch: Include the format

[PATCH v1 2/3] emacs: Pass the part to text/plain hook functions

2018-12-21 Thread David Edmondson
Some text/plain hook functions may wish to access the details of the part that is being manipulated. --- emacs/notmuch-show.el | 2 +- emacs/notmuch-wash.el | 10 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el index

  1   2   3   4   5   6   7   8   9   10   >