aboutsummaryrefslogtreecommitdiffstats
path: root/src/syntax.c
diff options
context:
space:
mode:
authorEli Zaretskii2022-06-25 10:46:10 +0300
committerEli Zaretskii2022-06-25 10:46:10 +0300
commit473affe5c6f44973725dd5bfb6990e089657e81e (patch)
tree138daffdef332ce1c1b8e70a8d1fd9561b7f3aef /src/syntax.c
parent230891d9f33644146cf1e962824618256374eadc (diff)
downloademacs-473affe5c6f44973725dd5bfb6990e089657e81e.tar.gz
emacs-473affe5c6f44973725dd5bfb6990e089657e81e.zip
Minor optimization of the "abort redisplay" feature
* src/xdisp.c (init_iterator, set_iterator_to_next) (redisplay_internal): * src/syntax.c (scan_sexps_forward): * src/regex-emacs.c (re_match_2_internal): * src/bidi.c (bidi_fetch_char, bidi_paragraph_init) (bidi_find_bracket_pairs, bidi_find_other_level_edge): Don't call 'update_redisplay_ticks' if aborting too-long redisplay is disabled. (Bug#45898)
Diffstat (limited to 'src/syntax.c')
-rw-r--r--src/syntax.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/syntax.c b/src/syntax.c
index c13a8179ee4..15625b4d0e2 100644
--- a/src/syntax.c
+++ b/src/syntax.c
@@ -3481,7 +3481,7 @@ do { prev_from = from; \
3481 means we consider 10 buffer positions examined by this function 3481 means we consider 10 buffer positions examined by this function
3482 roughly equivalent to the display engine iterating over a single 3482 roughly equivalent to the display engine iterating over a single
3483 buffer position. */ 3483 buffer position. */
3484 if (from > started_from) 3484 if (max_redisplay_ticks > 0 && from > started_from)
3485 update_redisplay_ticks ((from - started_from) / 10 + 1, NULL); 3485 update_redisplay_ticks ((from - started_from) / 10 + 1, NULL);
3486} 3486}
3487 3487