Variable: polling-period

polling-period is a customizable variable defined in keyboard.c.

Value

2.0

Documentation

Interval between polling for input during Lisp execution.

The reason for polling is to make C-g work to stop a running program. Polling is needed only when using X windows and SIGIO does not work. Polling is automatically disabled in all other cases.

Probably introduced at or before Emacs version 29.1.

Source Code

// Defined in /usr/src/emacs/src/keyboard.c
  DEFVAR_LISP ("polling-period", Vpolling_period,
	      doc: /* Interval between polling for input during Lisp execution.
The reason for polling is to make C-g work to stop a running program.
Polling is needed only when using X windows and SIGIO does not work.
Polling is automatically disabled in all other cases.  */);