diff options
| author | Stefan Monnier | 2023-12-25 22:40:02 -0500 |
|---|---|---|
| committer | Stefan Monnier | 2025-07-15 13:49:29 -0400 |
| commit | c3f3fe136cefc4c3aed960b175053e7c048aa979 (patch) | |
| tree | 0ed24837d09d9709f1bd43fba97d1d7bea14ca1a /java/README | |
| parent | 4c9b37660771776563cf79bb3a2b6e692aa05ca2 (diff) | |
| download | emacs-c3f3fe136cefc4c3aed960b175053e7c048aa979.tar.gz emacs-c3f3fe136cefc4c3aed960b175053e7c048aa979.zip | |
Add `redisplay_counter` to catch nested redisplays and abort outer one
The redisplay code is not re-entrant. To allow running ELisp code
from within redisplay, we have some hacks (e.g. `inhibit-redisplay`)
that try to avoid the resulting breakage.
This commit adds another one of those hacks, which tries
to get closer to the core of the problem, thereby making it "safe"
to override `inhibit-redisplay`, e.g. to debug jit-lock code.
* src/dispextern.h (redisplay_counter): Declare.
* src/xdisp.c (redisplay_counter): Define.
(redisplay_internal) Increment it.
(dsafe__call): Use it, in case `inhibit-redisplay` is overridden.
* src/eval.c (call_debugger): Use it as well to refine the test
we already had.
Diffstat (limited to 'java/README')
0 files changed, 0 insertions, 0 deletions