diff options
| -rw-r--r-- | src/dispextern.h | 4 | ||||
| -rw-r--r-- | src/xdisp.c | 10 |
2 files changed, 7 insertions, 7 deletions
diff --git a/src/dispextern.h b/src/dispextern.h index f27279975ac..4acf3362c69 100644 --- a/src/dispextern.h +++ b/src/dispextern.h | |||
| @@ -3356,9 +3356,7 @@ void x_cr_init_fringe (struct redisplay_interface *); | |||
| 3356 | 3356 | ||
| 3357 | extern unsigned row_hash (struct glyph_row *); | 3357 | extern unsigned row_hash (struct glyph_row *); |
| 3358 | 3358 | ||
| 3359 | extern void block_buffer_flips(void); | 3359 | extern bool buffer_flipping_blocked_p (void); |
| 3360 | extern void unblock_buffer_flips(void); | ||
| 3361 | extern bool buffer_flipping_blocked_p(void); | ||
| 3362 | 3360 | ||
| 3363 | /* Defined in image.c */ | 3361 | /* Defined in image.c */ |
| 3364 | 3362 | ||
diff --git a/src/xdisp.c b/src/xdisp.c index 1420a4a7e36..2acdfa90b7a 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -818,6 +818,8 @@ static void iterate_out_of_display_property (struct it *); | |||
| 818 | static void pop_it (struct it *); | 818 | static void pop_it (struct it *); |
| 819 | static void redisplay_internal (void); | 819 | static void redisplay_internal (void); |
| 820 | static void echo_area_display (bool); | 820 | static void echo_area_display (bool); |
| 821 | static void block_buffer_flips (void); | ||
| 822 | static void unblock_buffer_flips (void); | ||
| 821 | static void redisplay_windows (Lisp_Object); | 823 | static void redisplay_windows (Lisp_Object); |
| 822 | static void redisplay_window (Lisp_Object, bool); | 824 | static void redisplay_window (Lisp_Object, bool); |
| 823 | static Lisp_Object redisplay_window_error (Lisp_Object); | 825 | static Lisp_Object redisplay_window_error (Lisp_Object); |
| @@ -14477,15 +14479,15 @@ disp_char_vector (struct Lisp_Char_Table *dp, int c) | |||
| 14477 | 14479 | ||
| 14478 | static int buffer_flip_blocked_depth; | 14480 | static int buffer_flip_blocked_depth; |
| 14479 | 14481 | ||
| 14480 | void | 14482 | static void |
| 14481 | block_buffer_flips(void) | 14483 | block_buffer_flips (void) |
| 14482 | { | 14484 | { |
| 14483 | eassert (buffer_flip_blocked_depth >= 0); | 14485 | eassert (buffer_flip_blocked_depth >= 0); |
| 14484 | buffer_flip_blocked_depth++; | 14486 | buffer_flip_blocked_depth++; |
| 14485 | } | 14487 | } |
| 14486 | 14488 | ||
| 14487 | void | 14489 | static void |
| 14488 | unblock_buffer_flips(void) | 14490 | unblock_buffer_flips (void) |
| 14489 | { | 14491 | { |
| 14490 | eassert (buffer_flip_blocked_depth > 0); | 14492 | eassert (buffer_flip_blocked_depth > 0); |
| 14491 | if (--buffer_flip_blocked_depth == 0) | 14493 | if (--buffer_flip_blocked_depth == 0) |