all messages for Emacs-related lists mirrored at yhetil.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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.