From: Lars Ingebrigtsen <larsi@gnus.org>
To: Noam Postavsky <npostavs@gmail.com>
Cc: Andreas Schwab <schwab@suse.de>, emacs-devel <emacs-devel@gnu.org>
Subject: Re: Really noninteractive
Date: Mon, 24 Feb 2020 14:03:15 +0100 [thread overview]
Message-ID: <875zfw16jw.fsf@gnus.org> (raw)
In-Reply-To: <CAM-tV-9LP9C4Wma4-9wq_NAumvStdJ66-Pbz9jY9M0jreU8dNQ@mail.gmail.com> (Noam Postavsky's message of "Mon, 24 Feb 2020 07:55:02 -0500")
Noam Postavsky <npostavs@gmail.com> writes:
> `read-string' doesn't use `standard-input'. I think only `read' does.
Indeed.
By the way, the doc string for read is oddly phrased:
STREAM or the value of ‘standard-input’ may be:
a buffer (read from point and advance it)
a marker (read from where it points and advance it)
a function (call it with no arguments for each character,
call it with a char as argument to push a char back)
a string (takes text from string, starting at the beginning)
t (read text line using minibuffer and use it, or read from
standard input in batch mode).
All of these are odd, but the "call it with no arguments" etc is
particularly befuddling. I think what happens is that the function is
called with no arguments, and should return a character (and so on)?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
next prev parent reply other threads:[~2020-02-24 13:03 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-02-20 14:39 Really noninteractive Lars Ingebrigtsen
2020-02-20 15:23 ` Andreas Schwab
2020-02-20 17:42 ` Lars Ingebrigtsen
2020-02-24 9:16 ` Andreas Schwab
2020-02-24 12:55 ` Noam Postavsky
2020-02-24 13:03 ` Lars Ingebrigtsen [this message]
2020-02-20 19:05 ` Clément Pit-Claudel
2020-02-20 15:32 ` Ihor Radchenko
2020-02-20 17:42 ` Lars Ingebrigtsen
2020-02-20 17:56 ` Noam Postavsky
2020-02-20 18:36 ` Lars Ingebrigtsen
2020-02-20 19:11 ` dick.r.chiang
2020-02-21 13:20 ` Noam Postavsky
2020-02-21 14:11 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=875zfw16jw.fsf@gnus.org \
--to=larsi@gnus.org \
--cc=emacs-devel@gnu.org \
--cc=npostavs@gmail.com \
--cc=schwab@suse.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).