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:42:18 +0100 Message-ID: <87lh0tvfvp.fsf@russet.org.uk> References: <87oa5sexis.fsf@russet.org.uk> <57923230.9090608@orcon.net.nz> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1469202241 23939 80.91.229.3 (22 Jul 2016 15:44:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 22 Jul 2016 15:44:01 +0000 (UTC) Cc: emacs-devel@gnu.org To: Phil Sainty Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jul 22 17:43:48 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 1bQcc7-0001bk-TL for ged-emacs-devel@m.gmane.org; Fri, 22 Jul 2016 17:43:48 +0200 Original-Received: from localhost ([::1]:47994 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bQcc6-0007rp-VR for ged-emacs-devel@m.gmane.org; Fri, 22 Jul 2016 11:43:47 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39942) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bQcbV-0007nP-1r for emacs-devel@gnu.org; Fri, 22 Jul 2016 11:43:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bQcbP-00066r-W3 for emacs-devel@gnu.org; Fri, 22 Jul 2016 11:43:08 -0400 Original-Received: from cloud103.planethippo.com ([31.216.48.48]:44322) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bQcbP-0005zE-LA for emacs-devel@gnu.org; Fri, 22 Jul 2016 11:43:03 -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=LDT/zb2NnIl4bzWtYddqoHKPJGN5s4/aj0kyBEJIeXI=; b=rjn+8fd2qsgHogDx4BHeITLORh G6l/Y1/DPt3A/ntor1CW+/B1rHxyD9s/jIBc0Jb7XPf49Mh3o4nQMQt9yD0inz6+FaY6C7J/A2k/Y UNH5noGOjL1+9m5q1cYTFOJxNZA7EQioWUlD9pq7on/wmLHv/IfYOCZw4arAqzjsytli826YEPgCn PVZTojo2LBDnX6ywr21guzstfTgWyVkkBvwM/OKJgfIoifJaiwKIPLoxArtXBQNcL7WLqlOU8KK9i dMz1LPHoVXj+IfThtwRs2cxLfhfo3VQCIEMXzPD7eAXZVZcmkRvRvdDsCVWWnaWwO9Hd391TbomYx siaAn2gg==; Original-Received: from janus-nat-128-240-225-60.ncl.ac.uk ([128.240.225.60]:22947 helo=russet.org.uk) by cloud103.planethippo.com with esmtpsa (TLSv1.2:DHE-RSA-AES128-SHA:128) (Exim 4.86_1) (envelope-from ) id 1bQcai-0040rO-7c; Fri, 22 Jul 2016 16:42:20 +0100 In-Reply-To: <57923230.9090608@orcon.net.nz> (Phil Sainty's message of "Sat, 23 Jul 2016 02:48:16 +1200") 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:206039 Archived-At: Phil Sainty writes: > I'm all for a more obvious way to write to stderr (albeit more for > batch uses in my case). > > In http://debbugs.gnu.org/cgi/bugreport.cgi?bug=17390 it was pointed > out to me that a PRINTCHARFUN function for stderr already exists -- > `external-debugging-output' defined in print.c > > I failed to follow up on that, but at the time I was thinking that > it would be nice to have a `standard-error' variable set to this > function, just like there's a `standard-output' variable, as it > would be dramatically more discoverable that way. > > As `external-debugging-output' hadn't already cropped up in this > discussion, I just wanted to point it out in case it wasn't known > to everyone. Well, there you go, never knew about that. And, except for the name, and the fact that it gets whitespace correct, it's identical to my stderr. I think my name is better, but open to differences of opinion. So, options: 1) drop my patch 2) accept my patch, make external-debbugging-output use stderr (or vice versa), to keep the name alive. Don't really mind. I have no use case that differentiates between stderr and stdout. Phil