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

2019-03-20 Thread Pierre Neidhardt
I've added notmuch-wash-cut-here to notmuch-show-insert-text/plain-hook, and
this works great, thanks for the prompt solution! :)

Question: Is is possible to configure the wash function to be expanded
by default?

-- 
Pierre Neidhardt
https://ambrevar.xyz/


signature.asc
Description: PGP signature
___
notmuch mailing list
notmuch@notmuchmail.org
https://notmuchmail.org/mailman/listinfo/notmuch


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 call `notmuch-wash-toggle-invisible-action' to
cause the button to be visible.

dme.
-- 
I'm in a backless dress on a pastel ward that's shining.
___
notmuch mailing list
notmuch@notmuchmail.org
https://notmuchmail.org/mailman/listinfo/notmuch


Re: inconsistent handling of stderr in notmuch-emacs

2019-03-20 Thread Tomi Ollila
On Fri, Mar 15 2019, David Bremner wrote:

> Rob noticed that generating extra output on stderr from the notmuch cli
> breaks some things in notmuch-emacs (in his case this was from a wrapper
> script).
>
> notmuch-search seems fairly robust at this point, but at least
> notmuch-hello and notmuch-mua-mail get confused by the extra
> output. I guess this is because of code calling #'call-process without
> specifying something to do with stderr.
>
> I don't know how often this is problem, but I guess it would be nice to
> eventually only call notmuch using make-process (for recent enough
> emacs). This allows cleaner handling of stderr.

for Older emacses the following code snippet could be utilized 
(originally a13b38824 (Austin Clements 2013-05-31)):

(proc (apply #'start-process name buffer
 "/bin/sh" "-c" 
 "exec 2>\"$1\"; shift; exec \"$0\" \"$@\""
 command err-file args))

But if we dropped support for emacs 24 (NEWS.25 mentioned make-process)
then we could use make-process everywhere :D

Tomi
___
notmuch mailing list
notmuch@notmuchmail.org
https://notmuchmail.org/mailman/listinfo/notmuch