From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: standard output/error/input streams Date: Mon, 23 Jan 2017 08:11:00 -0500 Message-ID: References: <87wpdxu8yt.fsf@russet.org.uk> <878tq27xu3.fsf@russet.org.uk> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1485177137 19655 195.159.176.226 (23 Jan 2017 13:12:17 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 23 Jan 2017 13:12:17 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2.50 (gnu/linux) Cc: emacs-devel@gnu.org To: phillip.lord@russet.org.uk (Phillip Lord) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jan 23 14:12:13 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cVePY-0003Jt-R4 for ged-emacs-devel@m.gmane.org; Mon, 23 Jan 2017 14:11:52 +0100 Original-Received: from localhost ([::1]:41678 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cVePd-0001eX-MG for ged-emacs-devel@m.gmane.org; Mon, 23 Jan 2017 08:11:57 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51837) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cVeOp-0001dg-P6 for emacs-devel@gnu.org; Mon, 23 Jan 2017 08:11:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cVeOl-0000JX-Vf for emacs-devel@gnu.org; Mon, 23 Jan 2017 08:11:07 -0500 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]:58438) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cVeOl-0000JJ-QA for emacs-devel@gnu.org; Mon, 23 Jan 2017 08:11:03 -0500 Original-Received: from ceviche.home (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.7/8.14.1) with ESMTP id v0NDB06d014668; Mon, 23 Jan 2017 08:11:01 -0500 Original-Received: by ceviche.home (Postfix, from userid 20848) id C4BDB66261; Mon, 23 Jan 2017 08:11:00 -0500 (EST) In-Reply-To: <878tq27xu3.fsf@russet.org.uk> (Phillip Lord's message of "Mon, 23 Jan 2017 12:41:24 +0000") X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 2 Rules triggered EDT_SA_DN_PASS=0, RV5929=0 X-NAI-Spam-Version: 2.3.0.9418 : core <5929> : inlines <5639> : streams <1730317> : uri <2362574> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 132.204.246.20 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:211575 Archived-At: > 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