unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Tomi Ollila <tomi.ollila@iki.fi>
To: David Bremner <david@tethera.net>, notmuch@notmuchmail.org
Subject: Re: inconsistent handling of stderr in notmuch-emacs
Date: Wed, 20 Mar 2019 22:17:23 +0200	[thread overview]
Message-ID: <m2o9651ess.fsf@guru.guru-group.fi> (raw)
In-Reply-To: <871s377epf.fsf@tethera.net>

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

  reply	other threads:[~2019-03-20 20:17 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-16  2:09 inconsistent handling of stderr in notmuch-emacs David Bremner
2019-03-20 20:17 ` Tomi Ollila [this message]
2019-03-28 11:26   ` David Bremner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://notmuchmail.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2o9651ess.fsf@guru.guru-group.fi \
    --to=tomi.ollila@iki.fi \
    --cc=david@tethera.net \
    --cc=notmuch@notmuchmail.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).