unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Really noninteractive
@ 2020-02-20 14:39 Lars Ingebrigtsen
  2020-02-20 15:23 ` Andreas Schwab
  2020-02-20 15:32 ` Ihor Radchenko
  0 siblings, 2 replies; 14+ messages in thread
From: Lars Ingebrigtsen @ 2020-02-20 14:39 UTC (permalink / raw)
  To: emacs-devel

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




^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2020-02-24 13:03 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-02-20 14:39 Really noninteractive Lars Ingebrigtsen
2020-02-20 15:23 ` Andreas Schwab
2020-02-20 17:42   ` Lars Ingebrigtsen
2020-02-24  9:16     ` Andreas Schwab
2020-02-24 12:55       ` Noam Postavsky
2020-02-24 13:03         ` Lars Ingebrigtsen
2020-02-20 19:05   ` Clément Pit-Claudel
2020-02-20 15:32 ` Ihor Radchenko
2020-02-20 17:42   ` Lars Ingebrigtsen
2020-02-20 17:56     ` Noam Postavsky
2020-02-20 18:36       ` Lars Ingebrigtsen
2020-02-20 19:11         ` dick.r.chiang
2020-02-21 13:20           ` Noam Postavsky
2020-02-21 14:11             ` Eli Zaretskii

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).