Variable: max-redisplay-ticks
max-redisplay-ticks is a variable defined in xdisp.c.
Value
0
Documentation
Maximum number of redisplay ticks before aborting redisplay of a window.
This allows to abort the display of a window if the amount of low-level
redisplay operations exceeds the value of this variable. When display of
a window is aborted due to this reason, the buffer shown in that window
will not have its windows redisplayed until the buffer is modified or until
you type C-l (recenter-top-bottom) with one of its windows selected.
You can also decide to kill the buffer and visit it in some
other way, like under so-long-mode or literally.
The default value is zero, which disables this feature. The recommended non-zero value is between 100000 and 1000000, depending on your patience and the speed of your system.
Probably introduced at or before Emacs version 29.1.
Source Code
// Defined in /usr/src/emacs/src/xdisp.c
DEFVAR_INT ("max-redisplay-ticks", max_redisplay_ticks,
doc: /* Maximum number of redisplay ticks before aborting redisplay of a window.
This allows to abort the display of a window if the amount of low-level
redisplay operations exceeds the value of this variable. When display of
a window is aborted due to this reason, the buffer shown in that window
will not have its windows redisplayed until the buffer is modified or until
you type \\[recenter-top-bottom] with one of its windows selected.
You can also decide to kill the buffer and visit it in some
other way, like under `so-long-mode' or literally.
The default value is zero, which disables this feature.
The recommended non-zero value is between 100000 and 1000000,
depending on your patience and the speed of your system. */);