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: Thu, 20 Feb 2020 19:36:48 +0100 Message-ID: <87r1yp2ji7.fsf@gnus.org> References: <878skx492v.fsf@gnus.org> <874kvlgtp0.fsf@localhost> <87zhdd2lzy.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="130222"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Ihor Radchenko , emacs-devel To: Noam Postavsky Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Feb 20 19:37:25 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 1j4qhR-000Xkq-Ac for ged-emacs-devel@m.gmane-mx.org; Thu, 20 Feb 2020 19:37:25 +0100 Original-Received: from localhost ([::1]:47822 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j4qhQ-0004wT-DG for ged-emacs-devel@m.gmane-mx.org; Thu, 20 Feb 2020 13:37:24 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50714) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j4qgy-0004QV-FI for emacs-devel@gnu.org; Thu, 20 Feb 2020 13:36:57 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j4qgx-000756-BO for emacs-devel@gnu.org; Thu, 20 Feb 2020 13:36:56 -0500 Original-Received: from quimby.gnus.org ([2a01:4f9:2b:f0f::2]:38872) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1j4qgx-00072S-5H for emacs-devel@gnu.org; Thu, 20 Feb 2020 13:36:55 -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 1j4qgr-0006Iu-GG; Thu, 20 Feb 2020 19:36:51 +0100 In-Reply-To: (Noam Postavsky's message of "Thu, 20 Feb 2020 12:56:32 -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:244999 Archived-At: Noam Postavsky writes: > I think if you redirect stdin from /dev/null any > noninteractive/batch-mode reading will fail immediately. Yes, but that's not what I want. :-) I want to say "this function call, in this otherwise totally normal Emacs, should not prompt". I.e., what my original example said: (let ((noninteractive t)) (read-string "foo")) => error But it's starting to sound like nobody's implemented this? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no