From: Philipp Stephani <p.stephani2@gmail.com>
To: Narendra Joshi <narendraj9@gmail.com>
Cc: help-gnu-emacs <help-gnu-emacs@gnu.org>
Subject: Re: Query about call-process
Date: Fri, 30 Mar 2018 19:44:25 +0000 [thread overview]
Message-ID: <CAArVCkT0yC0fZraxpXxfm1-rhoss6k0oWs3vc-9K=zUVhAyJNQ@mail.gmail.com> (raw)
In-Reply-To: <87po3l1jv6.fsf@gmail.com>
Narendra Joshi <narendraj9@gmail.com> schrieb am Fr., 30. März 2018 um
20:49 Uhr:
> Hi,
>
> The document string for `call-process' says that
> > You can’t directly specify a buffer to put the error output
> > in; that is too difficult to implement. But you can achieve
> > this result by sending the error output to a temporary file
> > and then inserting the file into a buffer when the subprocess
> > finishes.
>
> I would like to understand what makes doing this difficult?
>
It requires a select loop because you'd have to read from the stdout and
stderr pipe simultaneously. For the same reason, standard input also has to
come from a file.
Though the argument is a bit weird because `make-process' can do exactly
that. It would just require changing `call-process' to use a select loop to
achieve the same effect.
next prev parent reply other threads:[~2018-03-30 19:44 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-30 18:47 Query about call-process Narendra Joshi
2018-03-30 19:44 ` Philipp Stephani [this message]
2018-03-30 21:21 ` Eli Zaretskii
2018-03-30 21:24 ` Philipp Stephani
2018-03-31 7:41 ` Eli Zaretskii
2018-04-01 17:21 ` Philipp Stephani
2018-04-01 17:29 ` Eli Zaretskii
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAArVCkT0yC0fZraxpXxfm1-rhoss6k0oWs3vc-9K=zUVhAyJNQ@mail.gmail.com' \
--to=p.stephani2@gmail.com \
--cc=help-gnu-emacs@gnu.org \
--cc=narendraj9@gmail.com \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.