[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Adding streams for standard out and standard err
From: |
Phillip Lord |
Subject: |
Re: Adding streams for standard out and standard err |
Date: |
Thu, 21 Jul 2016 19:42:19 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.95 (gnu/linux) |
Andreas Schwab <address@hidden> writes:
> address@hidden (Phillip Lord) writes:
>
>> +Two functions which are specifically designed for use as output
>> +streams:
>> +
>> address@hidden @asis
>> address@hidden @code{stdout} output stream
>> address@hidden @var{stdout}
>> +Prints to the system standard output (as opposed to the
>> address@hidden), regardless of whether Emacs is running
>> +interactively or not.
>> +
>> address@hidden @var{stderr} output stream
>> +Prints to the system standard error, regardless of whether Emacs is
>> +running interactively or not.
>> address@hidden 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