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: Really noninteractive Date: Thu, 20 Feb 2020 15:39:04 +0100 Message-ID: <878skx492v.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="102737"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) To: emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Feb 20 15:39:57 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 1j4mzd-000QbZ-7x for ged-emacs-devel@m.gmane-mx.org; Thu, 20 Feb 2020 15:39:57 +0100 Original-Received: from localhost ([::1]:43514 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j4mzc-0005EN-8Y for ged-emacs-devel@m.gmane-mx.org; Thu, 20 Feb 2020 09:39:56 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42857) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j4myt-0004dc-Bx for emacs-devel@gnu.org; Thu, 20 Feb 2020 09:39:12 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j4mys-0001oJ-E4 for emacs-devel@gnu.org; Thu, 20 Feb 2020 09:39:11 -0500 Original-Received: from quimby.gnus.org ([2a01:4f9:2b:f0f::2]:35780) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1j4mys-0001mf-7T for emacs-devel@gnu.org; Thu, 20 Feb 2020 09:39:10 -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 1j4mym-0003xx-Tr for emacs-devel@gnu.org; Thu, 20 Feb 2020 15:39:07 +0100 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:244991 Archived-At: I somehow expected (let ((noninteractive t)) (read-string "foo: ")) to error out, since the documentation of the variable is: --- Non-nil means Emacs is running without interactive terminal. --- I'm trying to use Emacs from a server context, and would prefer that Emacs signal an error whenever you tell it to do something interactive rather than hang forever. Is there a way to do this that I've missed? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no