all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@IRO.UMontreal.CA>
To: phillip.lord@russet.org.uk (Phillip Lord)
Cc: emacs-devel@gnu.org
Subject: Re: standard output/error/input streams
Date: Mon, 23 Jan 2017 08:11:00 -0500	[thread overview]
Message-ID: <jwv7f5lq60r.fsf-monnier+Inbox@gnu.org> (raw)
In-Reply-To: <878tq27xu3.fsf@russet.org.uk> (Phillip Lord's message of "Mon, 23 Jan 2017 12:41:24 +0000")

> If we had a function to go to generate a stream from a process then we
> could have our cake and eat it.

(lambda (c) (process-send-string PROC (string c))) ?

BTW, w.r.t stdin/stdout/stderr: these are special because they may be
inaccessible to something like a subprocess (or at least it can be nigh
on impossible for the Emacs process itself to determine where
std(in|out|err) are going).

IOW, additionally to make-file-process, we'd need
a make-process-from-open-file-descriptor.


        Stefan



      reply	other threads:[~2017-01-23 13:11 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-14 12:22 standard output/error/input streams Phillip Lord
2017-01-14 14:03 ` Noam Postavsky
2017-01-14 14:31 ` Eli Zaretskii
2017-01-14 17:51   ` Eli Zaretskii
2017-01-19  7:21 ` John Wiegley
2017-01-20 13:38   ` Phillip Lord
2017-01-20 16:26   ` Stefan Monnier
2017-01-20 21:24     ` John Wiegley
2017-01-20 21:52       ` Stefan Monnier
2017-01-20 21:59         ` John Wiegley
2017-01-23 12:41         ` Phillip Lord
2017-01-23 13:11           ` Stefan Monnier [this message]

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=jwv7f5lq60r.fsf-monnier+Inbox@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=emacs-devel@gnu.org \
    --cc=phillip.lord@russet.org.uk \
    /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.