Variable: inhibit-interaction

inhibit-interaction is a variable defined in minibuf.c.

Value

nil

Documentation

Non-nil means any user interaction will signal an error.

This variable can be bound when user interaction can't be performed, for instance when running a headless Emacs server. Functions like read-from-minibuffer (and the like) will signal inhibited-interaction instead.

View in manual

Probably introduced at or before Emacs version 28.1.

Source Code

// Defined in /usr/src/emacs/src/minibuf.c
  DEFVAR_BOOL ("inhibit-interaction",
	       inhibit_interaction,
	       doc: /* Non-nil means any user interaction will signal an error.
This variable can be bound when user interaction can't be performed,
for instance when running a headless Emacs server.  Functions like
`read-from-minibuffer' (and the like) will signal `inhibited-interaction'
instead. */);