From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: Re: Really noninteractive Date: Mon, 24 Feb 2020 14:03:15 +0100 Message-ID: <875zfw16jw.fsf@gnus.org> References: <878skx492v.fsf@gnus.org> <874kvl40lk.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="30639"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Andreas Schwab , emacs-devel To: Noam Postavsky Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Feb 24 14:04:02 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1j6DP0-0007kV-CO for ged-emacs-devel@m.gmane-mx.org; Mon, 24 Feb 2020 14:04:02 +0100 Original-Received: from localhost ([::1]:36190 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j6DOz-0007wZ-F7 for ged-emacs-devel@m.gmane-mx.org; Mon, 24 Feb 2020 08:04:01 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36625) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j6DOS-0007Ue-9l for emacs-devel@gnu.org; Mon, 24 Feb 2020 08:03:32 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j6DOO-0006li-7y for emacs-devel@gnu.org; Mon, 24 Feb 2020 08:03:28 -0500 Original-Received: from quimby.gnus.org ([2a01:4f9:2b:f0f::2]:53330) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1j6DOO-0006ks-1W for emacs-devel@gnu.org; Mon, 24 Feb 2020 08:03:24 -0500 Original-Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1j6DOF-00063U-Vl; Mon, 24 Feb 2020 14:03:20 +0100 In-Reply-To: (Noam Postavsky's message of "Mon, 24 Feb 2020 07:55:02 -0500") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a01:4f9:2b:f0f::2 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:245054 Archived-At: Noam Postavsky 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 =E2=80=98standard-input=E2=80=99 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)? --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no