From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.devel Subject: Re: Really noninteractive Date: Mon, 24 Feb 2020 10:16:51 +0100 Message-ID: References: <878skx492v.fsf@gnus.org> <874kvl40lk.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="86709"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) Cc: emacs-devel To: Lars Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Feb 24 10:17:33 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 1j69rp-000MTh-Nn for ged-emacs-devel@m.gmane-mx.org; Mon, 24 Feb 2020 10:17:33 +0100 Original-Received: from localhost ([::1]:33630 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j69ro-0003QK-Q1 for ged-emacs-devel@m.gmane-mx.org; Mon, 24 Feb 2020 04:17:32 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34103) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j69rC-00030G-B9 for emacs-devel@gnu.org; Mon, 24 Feb 2020 04:16:55 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j69rB-0003Xf-Cr for emacs-devel@gnu.org; Mon, 24 Feb 2020 04:16:54 -0500 Original-Received: from mx2.suse.de ([195.135.220.15]:37972) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1j69rB-0003Wr-7Q for emacs-devel@gnu.org; Mon, 24 Feb 2020 04:16:53 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Original-Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id BB3D0ACAE; Mon, 24 Feb 2020 09:16:51 +0000 (UTC) X-Yow: "THE LITTLE PINK FLESH SISTERS," I saw them at th' FLUORESCENT BULB MAKERS CONVENTION... In-Reply-To: <874kvl40lk.fsf@gnus.org> (Lars Ingebrigtsen's message of "Thu, 20 Feb 2020 18:42:15 +0100") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no timestamps) [generic] X-Received-From: 195.135.220.15 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:245052 Archived-At: On Feb 20 2020, Lars Ingebrigtsen wrote: > Andreas Schwab writes: > >>> 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. >> >> Run emacs in batch mode. > > I don't want to do that -- I just want to ensure that certain code paths > aren't interactive. Set standard-input to a function that throws. Andreas. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."