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: Thu, 21 Jul 2016 19:42:19 +0100 Message-ID: <87shv23kac.fsf@russet.org.uk> References: <87oa5sexis.fsf@russet.org.uk> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1469128485 6250 80.91.229.3 (21 Jul 2016 19:14:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 21 Jul 2016 19:14:45 +0000 (UTC) Cc: emacs-devel@gnu.org To: Andreas Schwab Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jul 21 21:14:38 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 1bQJQa-0005PW-Fu for ged-emacs-devel@m.gmane.org; Thu, 21 Jul 2016 21:14:36 +0200 Original-Received: from localhost ([::1]:43090 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bQJQZ-0001e9-Mu for ged-emacs-devel@m.gmane.org; Thu, 21 Jul 2016 15:14:35 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48746) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bQIvT-0006py-PA for emacs-devel@gnu.org; Thu, 21 Jul 2016 14:42:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bQIvN-0004Z7-NK for emacs-devel@gnu.org; Thu, 21 Jul 2016 14:42:26 -0400 Original-Received: from cloud103.planethippo.com ([31.216.48.48]:33938) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bQIvN-0004Z3-Fv for emacs-devel@gnu.org; Thu, 21 Jul 2016 14:42:21 -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=sITU2TsYLFI50pvhS97DdvhfkTPbNaTvEmNitPQgiLI=; b=WwN6Dnt7rfFMu24dqD3BaCBzJG 2BeqM4CX1lSw/jzTV4mmRo3MFoTJHd8L0xrJhxTWcbqjNnoma6UbwwLbjnkqECJn+Z+chGZNvmTkh RJFMZaXwpnqAV3eBhYlEGc0t871qa6IRaKtEf+wXxw6aF+wrGVYePWHa7iUQNyC5zuhSxjBak9wx3 08ae+YtcXTqIPPWIuJn5oChJOOUQGymV9VxuLoAIJZnxyexyGnrlbhEzIuWRPmpodo9WZW/nmRM1B fpf9kvnHbKTIwiVpDTfUWQF2fwf5U1BRr8hvNsNPs9gRfPwV+wW64AVYc+J5xdiLshbqAZtnmt+Wq unzf/prw==; Original-Received: from cpc1-benw10-2-0-cust373.gate.cable.virginm.net ([77.98.219.118]:52599 helo=russet.org.uk) by cloud103.planethippo.com with esmtpsa (TLSv1.2:DHE-RSA-AES128-SHA:128) (Exim 4.86_1) (envelope-from ) id 1bQIvM-000zJN-Sg; Thu, 21 Jul 2016 19:42:20 +0100 In-Reply-To: (Andreas Schwab's message of "Thu, 21 Jul 2016 09:12:06 +0200") 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:205986 Archived-At: Andreas Schwab writes: > phillip.lord@russet.org.uk (Phillip Lord) writes: > >> +Two functions which are specifically designed for use as output >> +streams: >> + >> +@table @asis >> +@cindex @code{stdout} output stream >> +@item @var{stdout} >> +Prints to the system standard output (as opposed to the >> +@var{standard-output}), regardless of whether Emacs is running >> +interactively or not. >> + >> +@item @var{stderr} output stream >> +Prints to the system standard error, regardless of whether Emacs is >> +running interactively or not. >> +@end table > > That's not a good name for these functions. Since they do the printing > their name should include `print'. Yes, this is true, although they only print single characters, which is pretty useless for most people. In actual use, they look like this: (print "hello" 'stdout) Extending the name to reflect the full function: (print "hello" 'printchar-to-stdout) Seemed a bit duplicative to me. Phil