]> git.eshelyaron.com Git - emacs.git/commit
Allow aborting redisplay stuck in 'parse-partial-sexp'
authorEli Zaretskii <eliz@gnu.org>
Sat, 18 Jun 2022 10:07:20 +0000 (13:07 +0300)
committerEli Zaretskii <eliz@gnu.org>
Sat, 18 Jun 2022 10:07:20 +0000 (13:07 +0300)
commit82626e62ab27b498848e4c1822f6c4c06ad53947
treeb1409b330af064689e3b2751db92388583e35c90
parent94672c2936dd58a1837fd208f8678074ca8193c3
Allow aborting redisplay stuck in 'parse-partial-sexp'

* src/xdisp.c (display_working_on_window_p): New global variable.
(unwind_display_working_on_window): New function.
* src/keyboard.c (command_loop_1): Reset
'display_working_on_window_p' before and after executing commands.
* src/window.c (Frecenter, window_scroll, displayed_window_lines):
* src/indent.c (Fvertical_motion): Set
'display_working_on_window_p' before calling 'start_display'.
* src/syntax.c (scan_sexps_forward): Call 'update_redisplay_ticks'
after finishing the loop.
src/dispextern.h
src/indent.c
src/keyboard.c
src/window.c
src/xdisp.c