From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: phillip.lord@russet.org.uk (Phillip Lord) Newsgroups: gmane.emacs.devel Subject: Re: standard output/error/input streams Date: Fri, 20 Jan 2017 13:38:07 +0000 Message-ID: <878tq5c0n4.fsf@russet.org.uk> References: <87wpdxu8yt.fsf@russet.org.uk> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1484921778 31754 195.159.176.226 (20 Jan 2017 14:16:18 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 20 Jan 2017 14:16:18 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.91 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jan 20 15:16:14 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 1cUZz5-0007OM-8E for ged-emacs-devel@m.gmane.org; Fri, 20 Jan 2017 15:16:07 +0100 Original-Received: from localhost ([::1]:55022 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cUZz9-0007UZ-TD for ged-emacs-devel@m.gmane.org; Fri, 20 Jan 2017 09:16:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55401) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cUZP6-0001GM-HB for emacs-devel@gnu.org; Fri, 20 Jan 2017 08:38:57 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cUZP3-0002Xl-Bs for emacs-devel@gnu.org; Fri, 20 Jan 2017 08:38:56 -0500 Original-Received: from mailgw.mycpanelcloud.co.uk ([185.116.214.213]:49332) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cUZP3-00028D-1t for emacs-devel@gnu.org; Fri, 20 Jan 2017 08:38:53 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by mailgw.mycpanelcloud.co.uk (Postfix) with ESMTP id 4F900C4ED9 for ; Fri, 20 Jan 2017 13:37:46 +0000 (GMT) X-Virus-Scanned: by SpamTitan at mycpanelcloud.co.uk Original-Received: from mailgw.mycpanelcloud.co.uk (localhost [127.0.0.1]) by mailgw.mycpanelcloud.co.uk (Postfix) with ESMTP id 0B220C4ED4 for ; Fri, 20 Jan 2017 13:37:45 +0000 (GMT) Original-Received: from cloud103.planethippo.com (cloud103.planethippo.com [31.216.48.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mailgw.mycpanelcloud.co.uk (Postfix) with ESMTPS id 014F7C4E55 for ; Fri, 20 Jan 2017 13:37:44 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=russet.org.uk; s=default; h=Content-Type:MIME-Version:Message-ID: In-Reply-To:Date:References:Subject:To:From:Sender:Reply-To:Cc: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=LdEPHJhLD+clY/o9fU5Pdwz06QzXATYdzZj4hCIGz4M=; b=WfKI2YMEUOJOAVaOuZr8jkh6n a/UaYbno89hevowT9wrMN0YmUMnM5kZ6+SUan4wRPdXD27uMNJ+MndmQGyaIYUnuH6rEBujPhQlO2 2yq9/fbux7xIQlRj3bAm70ISDnZlemY8Tg4faD1KryPG34o4uudmKpPhC6nnRYlprAIbStZRlpVBp mwzw9Ohv4UmfN3yE+Wa1EERo2e2pmGEwZsSKnNsxh/o/9dGG0QpG9/ZPMpzEkL5MjATAro9m3eVn/ I+2k85CFZSKtSo0xoZub2BLpuoMWksvrxJxRcEX2CfgVf5k/1Ystgl77LSmCEpTFma1SUx3ySMDaJ 2c/uS1Oxw==; Original-Received: from janus-nat-128-240-225-37.ncl.ac.uk ([128.240.225.37]:52761 helo=russet.org.uk) by cloud103.planethippo.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.87) (envelope-from ) id 1cUZOJ-000I2H-R7 for emacs-devel@gnu.org; Fri, 20 Jan 2017 13:38:07 +0000 In-Reply-To: (John Wiegley's message of "Wed, 18 Jan 2017 23:21:32 -0800") X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cloud103.planethippo.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - russet.org.uk X-Get-Message-Sender-Via: cloud103.planethippo.com: authenticated_id: phillip.lord@russet.org.uk X-Authenticated-Sender: cloud103.planethippo.com: phillip.lord@russet.org.uk X-detected-operating-system: by eggs.gnu.org: FreeBSD 8.x [fuzzy] X-Received-From: 185.116.214.213 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:211424 Archived-At: John Wiegley writes: >>>>>> "PL" == Phillip Lord writes: > > PL> The main motivation for this is the same as last time; it gives a > PL> communication channel with Emacs which does not involve buffers at any > PL> point. Although, if you search for "Emacs" and "standard output", other > PL> people would like the same thing for other reasons. > > Have you thought of allowing files to be "opened" for direct writing as well? > That is, I'd rather see file handles become a new output stream type, with > stdout and stderr instances of these, than hard-coded streams for only stdout > and stderr. Although, getting cleanup right makes me less certain. Yes, that would be nice I agree, although standard out gives me my main use case, and there is already support for clean up. I'll take a look next maybe. Phil