[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Really noninteractive

From: Lars Ingebrigtsen
Subject: Really noninteractive
Date: Thu, 20 Feb 2020 15:39:04 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]