From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: phillip.lord@russet.org.uk (Phillip Lord) Newsgroups: gmane.emacs.devel Subject: Re: Adding streams for standard out and standard err Date: Fri, 22 Jul 2016 16:43:47 +0100 Message-ID: <87h9bhvft8.fsf@russet.org.uk> References: <87oa5sexis.fsf@russet.org.uk> <83eg6nysug.fsf@gnu.org> <87k2ge3jsl.fsf@russet.org.uk> <83invyyffg.fsf@gnu.org> <87bn1q3g2h.fsf@russet.org.uk> <83eg6mxj2i.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1469202311 25242 80.91.229.3 (22 Jul 2016 15:45:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 22 Jul 2016 15:45:11 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jul 22 17:44:55 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1bQcd9-0002NL-Ot for ged-emacs-devel@m.gmane.org; Fri, 22 Jul 2016 17:44:52 +0200 Original-Received: from localhost ([::1]:47998 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bQcd5-0008Oc-Il for ged-emacs-devel@m.gmane.org; Fri, 22 Jul 2016 11:44:47 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40567) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bQccQ-0008Kh-Os for emacs-devel@gnu.org; Fri, 22 Jul 2016 11:44:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bQccH-0006Tm-Jv for emacs-devel@gnu.org; Fri, 22 Jul 2016 11:44:06 -0400 Original-Received: from cloud103.planethippo.com ([31.216.48.48]:44389) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bQccA-0006OH-S6; Fri, 22 Jul 2016 11:43:51 -0400 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:Cc:To:From; bh=w/AsTmJOduCeWkKtCbSRXhp0ZDe8fVQsGEI5Em0CXG8=; b=U75q9Z7MZGc4RIlOF9zS7AmbME AVBSVBx5QXWHXpeJInIToRlSH1/j6aVc+QtublhEBmln5H/sm1wxJ9Zr1sv2i00W5+fG1qTdASOLS pyiby2aX06KQ8Fpy8aldJCM9TYBvN1CB66ZpxG4ut16BiN487PjhYEGQUAWtg+GaqqVkE2ZJKV/tn lnokVRpsgqNvbRqszoDqzxfS1AP0mqvDUnZTaMdh1xjD7KBNA3dVR2bLolXNKwH30oS8/ZyLeAef1 gb6sQJbAQFeW7rRRoZgb7J3DVXeu0tlNC+tc2MxZGt9A70TJOTPpRqVxnRsw5c74zqLT7H5WZ9gpE t+J2ODPQ==; Original-Received: from janus-nat-128-240-225-60.ncl.ac.uk ([128.240.225.60]:13483 helo=russet.org.uk) by cloud103.planethippo.com with esmtpsa (TLSv1.2:DHE-RSA-AES128-SHA:128) (Exim 4.86_1) (envelope-from ) id 1bQccA-00415e-1q; Fri, 22 Jul 2016 16:43:50 +0100 In-Reply-To: <83eg6mxj2i.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 22 Jul 2016 09:50:29 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.95 (gnu/linux) 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: GNU/Linux 3.x X-Received-From: 31.216.48.48 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:206040 Archived-At: Eli Zaretskii writes: >> From: phillip.lord@russet.org.uk (Phillip Lord) >> Cc: emacs-devel@gnu.org >> Date: Thu, 21 Jul 2016 21:13:26 +0100 >> >> > Maybe that's all we need: a small wrapper around append-to-file. > However, if we do add them, perhaps we need to test the file > descriptor for validity and/or being different from the terminal > output device, and provide some helpful diagnostics if it isn't, > because I don't really believe in people being aware of the pitfalls. > E.g., I many times "rediscover" the problem when I need to debug a TTY > session of Emacs. As Phil Sainty has pointed out, the primitive already exists. These checks could be added to that also. Phil