aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog31
-rw-r--r--src/callproc.c6
-rw-r--r--src/dispextern.h10
-rw-r--r--src/dispnew.c28
-rw-r--r--src/keyboard.c8
-rw-r--r--src/minibuf.c4
-rw-r--r--src/process.c8
-rw-r--r--src/w32fns.c4
-rw-r--r--src/window.c8
-rw-r--r--src/xdisp.c54
-rw-r--r--src/xfaces.c2
-rw-r--r--src/xfns.c4
12 files changed, 88 insertions, 79 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 5ce56f4df04..596ae25c649 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,10 @@
12014-12-15 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 Various fixes to use bool type and constants.
4 * dispnew.c (update_single_window): Remove arg `force_p' since it's
5 always true.
6 * xfaces.c (clear_face_cache): Use bool for the argument type.
7
12014-12-15 Paul Eggert <eggert@cs.ucla.edu> 82014-12-15 Paul Eggert <eggert@cs.ucla.edu>
2 9
3 Correct same_at_end when restoring window points 10 Correct same_at_end when restoring window points
@@ -10,14 +17,12 @@
10 17
11 New feature optionally to accelerate auto-repeated scrolling. 18 New feature optionally to accelerate auto-repeated scrolling.
12 19
13 * xdisp.c: Remove "static" from declaration of 20 * xdisp.c: Remove "static" from declaration of Qfontification_functions.
14 Qfontification_functions.
15 21
16 * window.c (window_scroll): bind fontification-functions to nil 22 * window.c (window_scroll): Bind fontification-functions to nil
17 when scrolling by whole screens and 23 when scrolling by whole screens and
18 fast-but-imprecise-scrolling is non-nil. 24 fast-but-imprecise-scrolling is non-nil.
19 (syms_of_window): New DEFVAR_BOOL 25 (syms_of_window): New DEFVAR_BOOL fast-but-imprecise-scrolling.
20 fast-but-imprecise-scrolling.
21 26
22 * lisp.h (bool): Declare Qfontification_functions extern. 27 * lisp.h (bool): Declare Qfontification_functions extern.
23 28
@@ -28,10 +33,10 @@
28 [GNUTLS >= 3.0.20]: Declare for WINDOWSNT. 33 [GNUTLS >= 3.0.20]: Declare for WINDOWSNT.
29 (init_gnutls_functions)(gnutls_certificate_set_x509_system_trust) 34 (init_gnutls_functions)(gnutls_certificate_set_x509_system_trust)
30 [GNUTLS >= 3.0.20]: Load from shared library for WINDOWSNT. 35 [GNUTLS >= 3.0.20]: Load from shared library for WINDOWSNT.
31 (fn_gnutls_certificate_set_x509_system_trust) [!WINDOWSNT]: Define 36 (fn_gnutls_certificate_set_x509_system_trust) [!WINDOWSNT]:
32 new macro. 37 Define new macro.
33 (Fgnutls_boot) [GNUTLS >= 3.0.20]: Call 38 (Fgnutls_boot) [GNUTLS >= 3.0.20]:
34 gnutls_certificate_set_x509_system_trust. Log an error message if 39 Call gnutls_certificate_set_x509_system_trust. Log an error message if
35 it fails. 40 it fails.
36 41
372014-12-13 Paul Eggert <eggert@cs.ucla.edu> 422014-12-13 Paul Eggert <eggert@cs.ucla.edu>
@@ -41,8 +46,8 @@
41 46
422014-12-13 Eli Zaretskii <eliz@gnu.org> 472014-12-13 Eli Zaretskii <eliz@gnu.org>
43 48
44 * gnutls.c (Fgnutls_available_p, syms_of_gnutls): Move 49 * gnutls.c (Fgnutls_available_p, syms_of_gnutls):
45 gnutls-available-p out of the HAVE_GNUTLS conditional, and define 50 Move gnutls-available-p out of the HAVE_GNUTLS conditional, and define
46 them only once. 51 them only once.
47 52
482014-12-13 Teodor Zlatanov <tzz@lifelogs.com> 532014-12-13 Teodor Zlatanov <tzz@lifelogs.com>
@@ -58,8 +63,8 @@
58 63
592014-12-13 Eli Zaretskii <eliz@gnu.org> 642014-12-13 Eli Zaretskii <eliz@gnu.org>
60 65
61 * xdisp.c (move_it_in_display_line_to, display_line): Don't 66 * xdisp.c (move_it_in_display_line_to, display_line):
62 disallow overflow-newline-into-fringe when word-wrap is in 67 Don't disallow overflow-newline-into-fringe when word-wrap is in
63 effect. (Bug#19300) 68 effect. (Bug#19300)
64 69
652014-12-11 Stefan Monnier <monnier@iro.umontreal.ca> 702014-12-11 Stefan Monnier <monnier@iro.umontreal.ca>
diff --git a/src/callproc.c b/src/callproc.c
index 24b88551851..a677334b3b7 100644
--- a/src/callproc.c
+++ b/src/callproc.c
@@ -852,7 +852,7 @@ call_process (ptrdiff_t nargs, Lisp_Object *args, int filefd,
852 (process_coding.dst_pos_byte 852 (process_coding.dst_pos_byte
853 + process_coding.produced), 853 + process_coding.produced),
854 0); 854 0);
855 display_on_the_fly = 0; 855 display_on_the_fly = false;
856 process_coding = saved_coding; 856 process_coding = saved_coding;
857 carryover = nread; 857 carryover = nread;
858 /* Make the above condition always fail in the future. */ 858 /* Make the above condition always fail in the future. */
@@ -884,9 +884,9 @@ call_process (ptrdiff_t nargs, Lisp_Object *args, int filefd,
884 /* This variable might have been set to 0 for code 884 /* This variable might have been set to 0 for code
885 detection. In that case, set it back to 1 because 885 detection. In that case, set it back to 1 because
886 we should have already detected a coding system. */ 886 we should have already detected a coding system. */
887 display_on_the_fly = 1; 887 display_on_the_fly = true;
888 } 888 }
889 immediate_quit = 1; 889 immediate_quit = true;
890 QUIT; 890 QUIT;
891 } 891 }
892 give_up: ; 892 give_up: ;
diff --git a/src/dispextern.h b/src/dispextern.h
index 5510a1f50c1..8fd3ef935f6 100644
--- a/src/dispextern.h
+++ b/src/dispextern.h
@@ -3371,7 +3371,7 @@ void x_free_colors (struct frame *, unsigned long *, int);
3371void update_face_from_frame_parameter (struct frame *, Lisp_Object, 3371void update_face_from_frame_parameter (struct frame *, Lisp_Object,
3372 Lisp_Object); 3372 Lisp_Object);
3373Lisp_Object tty_color_name (struct frame *, int); 3373Lisp_Object tty_color_name (struct frame *, int);
3374void clear_face_cache (int); 3374void clear_face_cache (bool);
3375unsigned long load_color (struct frame *, struct face *, Lisp_Object, 3375unsigned long load_color (struct frame *, struct face *, Lisp_Object,
3376 enum lface_attribute_index); 3376 enum lface_attribute_index);
3377char *choose_face_font (struct frame *, Lisp_Object *, Lisp_Object, 3377char *choose_face_font (struct frame *, Lisp_Object *, Lisp_Object,
@@ -3444,11 +3444,11 @@ extern void cancel_hourglass (void);
3444#endif /* HAVE_WINDOW_SYSTEM */ 3444#endif /* HAVE_WINDOW_SYSTEM */
3445 3445
3446 3446
3447/* Defined in xmenu.c */ 3447/* Defined in xmenu.c. */
3448 3448
3449int popup_activated (void); 3449int popup_activated (void);
3450 3450
3451/* Defined in dispnew.c */ 3451/* Defined in dispnew.c. */
3452 3452
3453extern Lisp_Object buffer_posn_from_coords (struct window *, 3453extern Lisp_Object buffer_posn_from_coords (struct window *,
3454 int *, int *, 3454 int *, int *,
@@ -3484,7 +3484,7 @@ void blank_row (struct window *, struct glyph_row *, int);
3484void clear_glyph_matrix_rows (struct glyph_matrix *, int, int); 3484void clear_glyph_matrix_rows (struct glyph_matrix *, int, int);
3485void clear_glyph_row (struct glyph_row *); 3485void clear_glyph_row (struct glyph_row *);
3486void prepare_desired_row (struct window *, struct glyph_row *, bool); 3486void prepare_desired_row (struct window *, struct glyph_row *, bool);
3487void update_single_window (struct window *, bool); 3487void update_single_window (struct window *);
3488void do_pending_window_change (bool); 3488void do_pending_window_change (bool);
3489void change_frame_size (struct frame *, int, int, bool, bool, bool, bool); 3489void change_frame_size (struct frame *, int, int, bool, bool, bool, bool);
3490void init_display (void); 3490void init_display (void);
@@ -3493,7 +3493,7 @@ extern Lisp_Object Qredisplay_dont_pause;
3493extern void spec_glyph_lookup_face (struct window *, GLYPH *); 3493extern void spec_glyph_lookup_face (struct window *, GLYPH *);
3494extern void fill_up_frame_row_with_spaces (struct glyph_row *, int); 3494extern void fill_up_frame_row_with_spaces (struct glyph_row *, int);
3495 3495
3496/* Defined in terminal.c */ 3496/* Defined in terminal.c. */
3497 3497
3498extern void ring_bell (struct frame *); 3498extern void ring_bell (struct frame *);
3499extern void update_begin (struct frame *); 3499extern void update_begin (struct frame *);
diff --git a/src/dispnew.c b/src/dispnew.c
index d50d06f2d47..a68901acd57 100644
--- a/src/dispnew.c
+++ b/src/dispnew.c
@@ -3051,10 +3051,10 @@ update_frame (struct frame *f, bool force_p, bool inhibit_hairy_id_p)
3051 struct window *root_window = XWINDOW (f->root_window); 3051 struct window *root_window = XWINDOW (f->root_window);
3052 3052
3053 if (redisplay_dont_pause) 3053 if (redisplay_dont_pause)
3054 force_p = 1; 3054 force_p = true;
3055 else if (!force_p && detect_input_pending_ignore_squeezables ()) 3055 else if (!force_p && detect_input_pending_ignore_squeezables ())
3056 { 3056 {
3057 paused_p = 1; 3057 paused_p = true;
3058 goto do_pause; 3058 goto do_pause;
3059 } 3059 }
3060 3060
@@ -3074,7 +3074,7 @@ update_frame (struct frame *f, bool force_p, bool inhibit_hairy_id_p)
3074 /* Update the menu bar on X frames that don't have toolkit 3074 /* Update the menu bar on X frames that don't have toolkit
3075 support. */ 3075 support. */
3076 if (WINDOWP (f->menu_bar_window)) 3076 if (WINDOWP (f->menu_bar_window))
3077 update_window (XWINDOW (f->menu_bar_window), 1); 3077 update_window (XWINDOW (f->menu_bar_window), true);
3078#endif 3078#endif
3079 3079
3080#if defined (HAVE_WINDOW_SYSTEM) && ! defined (USE_GTK) && ! defined (HAVE_NS) 3080#if defined (HAVE_WINDOW_SYSTEM) && ! defined (USE_GTK) && ! defined (HAVE_NS)
@@ -3088,7 +3088,7 @@ update_frame (struct frame *f, bool force_p, bool inhibit_hairy_id_p)
3088 { 3088 {
3089 Lisp_Object tem; 3089 Lisp_Object tem;
3090 3090
3091 update_window (w, 1); 3091 update_window (w, true);
3092 w->must_be_updated_p = false; 3092 w->must_be_updated_p = false;
3093 3093
3094 /* Swap tool-bar strings. We swap because we want to 3094 /* Swap tool-bar strings. We swap because we want to
@@ -3113,7 +3113,7 @@ update_frame (struct frame *f, bool force_p, bool inhibit_hairy_id_p)
3113 /* Build F's desired matrix from window matrices. */ 3113 /* Build F's desired matrix from window matrices. */
3114 build_frame_matrix (f); 3114 build_frame_matrix (f);
3115 3115
3116 /* Update the display */ 3116 /* Update the display. */
3117 update_begin (f); 3117 update_begin (f);
3118 paused_p = update_frame_1 (f, force_p, inhibit_hairy_id_p, 1); 3118 paused_p = update_frame_1 (f, force_p, inhibit_hairy_id_p, 1);
3119 update_end (f); 3119 update_end (f);
@@ -3225,7 +3225,7 @@ update_window_tree (struct window *w, bool force_p)
3225 If FORCE_P, don't stop updating if input is pending. */ 3225 If FORCE_P, don't stop updating if input is pending. */
3226 3226
3227void 3227void
3228update_single_window (struct window *w, bool force_p) 3228update_single_window (struct window *w)
3229{ 3229{
3230 if (w->must_be_updated_p) 3230 if (w->must_be_updated_p)
3231 { 3231 {
@@ -3234,12 +3234,9 @@ update_single_window (struct window *w, bool force_p)
3234 /* Record that this is not a frame-based redisplay. */ 3234 /* Record that this is not a frame-based redisplay. */
3235 set_frame_matrix_frame (NULL); 3235 set_frame_matrix_frame (NULL);
3236 3236
3237 if (redisplay_dont_pause)
3238 force_p = 1;
3239
3240 /* Update W. */ 3237 /* Update W. */
3241 update_begin (f); 3238 update_begin (f);
3242 update_window (w, force_p); 3239 update_window (w, true);
3243 update_end (f); 3240 update_end (f);
3244 3241
3245 /* Reset flag in W. */ 3242 /* Reset flag in W. */
@@ -6267,8 +6264,15 @@ See `buffer-display-table' for more information. */);
6267 Vstandard_display_table = Qnil; 6264 Vstandard_display_table = Qnil;
6268 6265
6269 DEFVAR_BOOL ("redisplay-dont-pause", redisplay_dont_pause, 6266 DEFVAR_BOOL ("redisplay-dont-pause", redisplay_dont_pause,
6270 doc: /* Non-nil means display update isn't paused when input is detected. */); 6267 doc: /* Nil means display update is paused when input is detected. */);
6271 redisplay_dont_pause = 1; 6268 /* Contrary to expectations, a value of "false" can be detrimental to
6269 responsiveness since aborting a redisplay throws away some of the
6270 work already performed. It's usually more efficient (and gives
6271 more prompt feedback to the user) to let the redisplay terminate,
6272 and just completely skip the next command's redisplay (which is
6273 done regardless of this setting if there's pending input at the
6274 beginning of the next redisplay). */
6275 redisplay_dont_pause = true;
6272 6276
6273#ifdef CANNOT_DUMP 6277#ifdef CANNOT_DUMP
6274 if (noninteractive) 6278 if (noninteractive)
diff --git a/src/keyboard.c b/src/keyboard.c
index 6dc0b820eb9..beb34592d1c 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -270,7 +270,7 @@ static Lisp_Object Qhelp_form_show;
270/* File in which we write all commands we read. */ 270/* File in which we write all commands we read. */
271static FILE *dribble; 271static FILE *dribble;
272 272
273/* Nonzero if input is available. */ 273/* True if input is available. */
274bool input_pending; 274bool input_pending;
275 275
276/* Circular buffer for pre-read keyboard input. */ 276/* Circular buffer for pre-read keyboard input. */
@@ -2403,9 +2403,9 @@ echo_keystrokes_p (void)
2403/* commandflag 0 means do not autosave, but do redisplay. 2403/* commandflag 0 means do not autosave, but do redisplay.
2404 -1 means do not redisplay, but do autosave. 2404 -1 means do not redisplay, but do autosave.
2405 -2 means do neither. 2405 -2 means do neither.
2406 1 means do both. */ 2406 1 means do both.
2407 2407
2408/* The argument MAP is a keymap for menu prompting. 2408 The argument MAP is a keymap for menu prompting.
2409 2409
2410 PREV_EVENT is the previous input event, or nil if we are reading 2410 PREV_EVENT is the previous input event, or nil if we are reading
2411 the first event of a key sequence (or not reading a key sequence). 2411 the first event of a key sequence (or not reading a key sequence).
@@ -3878,7 +3878,7 @@ kbd_buffer_get_event (KBOARD **kbp,
3878 Lisp_Object obj; 3878 Lisp_Object obj;
3879 3879
3880#ifdef subprocesses 3880#ifdef subprocesses
3881 if (kbd_on_hold_p () && kbd_buffer_nr_stored () < KBD_BUFFER_SIZE/4) 3881 if (kbd_on_hold_p () && kbd_buffer_nr_stored () < KBD_BUFFER_SIZE / 4)
3882 { 3882 {
3883 /* Start reading input again because we have processed enough to 3883 /* Start reading input again because we have processed enough to
3884 be able to accept new events again. */ 3884 be able to accept new events again. */
diff --git a/src/minibuf.c b/src/minibuf.c
index 0b455157d52..27b5f7b7f36 100644
--- a/src/minibuf.c
+++ b/src/minibuf.c
@@ -713,8 +713,8 @@ read_minibuf (Lisp_Object map, Lisp_Object initial, Lisp_Object prompt,
713 { 713 {
714 XWINDOW (minibuf_window)->cursor.hpos = 0; 714 XWINDOW (minibuf_window)->cursor.hpos = 0;
715 XWINDOW (minibuf_window)->cursor.x = 0; 715 XWINDOW (minibuf_window)->cursor.x = 0;
716 XWINDOW (minibuf_window)->must_be_updated_p = 1; 716 XWINDOW (minibuf_window)->must_be_updated_p = true;
717 update_frame (XFRAME (selected_frame), 1, 1); 717 update_frame (XFRAME (selected_frame), true, true);
718 flush_frame (XFRAME (XWINDOW (minibuf_window)->frame)); 718 flush_frame (XFRAME (XWINDOW (minibuf_window)->frame));
719 } 719 }
720 720
diff --git a/src/process.c b/src/process.c
index 7283df4147b..e59ca5863d5 100644
--- a/src/process.c
+++ b/src/process.c
@@ -4323,7 +4323,7 @@ wait_reading_process_output (intmax_t time_limit, int nsecs, int read_kbd,
4323 4323
4324 while (1) 4324 while (1)
4325 { 4325 {
4326 bool timeout_reduced_for_timers = 0; 4326 bool timeout_reduced_for_timers = false;
4327 4327
4328 /* If calling from keyboard input, do not quit 4328 /* If calling from keyboard input, do not quit
4329 since we want to return C-g as an input character. 4329 since we want to return C-g as an input character.
@@ -4410,7 +4410,7 @@ wait_reading_process_output (intmax_t time_limit, int nsecs, int read_kbd,
4410 if (timespec_cmp (timer_delay, timeout) < 0) 4410 if (timespec_cmp (timer_delay, timeout) < 0)
4411 { 4411 {
4412 timeout = timer_delay; 4412 timeout = timer_delay;
4413 timeout_reduced_for_timers = 1; 4413 timeout_reduced_for_timers = true;
4414 } 4414 }
4415 } 4415 }
4416 else 4416 else
@@ -6669,7 +6669,7 @@ wait_reading_process_output (intmax_t time_limit, int nsecs, int read_kbd,
6669 6669
6670 while (1) 6670 while (1)
6671 { 6671 {
6672 bool timeout_reduced_for_timers = 0; 6672 bool timeout_reduced_for_timers = false;
6673 fd_set waitchannels; 6673 fd_set waitchannels;
6674 int xerrno; 6674 int xerrno;
6675 6675
@@ -6736,7 +6736,7 @@ wait_reading_process_output (intmax_t time_limit, int nsecs, int read_kbd,
6736 if (timespec_cmp (timer_delay, timeout) < 0) 6736 if (timespec_cmp (timer_delay, timeout) < 0)
6737 { 6737 {
6738 timeout = timer_delay; 6738 timeout = timer_delay;
6739 timeout_reduced_for_timers = 1; 6739 timeout_reduced_for_timers = true;
6740 } 6740 }
6741 } 6741 }
6742 } 6742 }
diff --git a/src/w32fns.c b/src/w32fns.c
index fc10e74cdff..17633708049 100644
--- a/src/w32fns.c
+++ b/src/w32fns.c
@@ -6252,8 +6252,8 @@ Text larger than the specified size is clipped. */)
6252 } 6252 }
6253 6253
6254 /* Draw into the window. */ 6254 /* Draw into the window. */
6255 w->must_be_updated_p = 1; 6255 w->must_be_updated_p = true;
6256 update_single_window (w, 1); 6256 update_single_window (w);
6257 6257
6258 unblock_input (); 6258 unblock_input ();
6259 6259
diff --git a/src/window.c b/src/window.c
index 0b766649b17..ca2bc74fcf4 100644
--- a/src/window.c
+++ b/src/window.c
@@ -7352,7 +7352,7 @@ the buffer; `temp-buffer-show-hook' is not run unless this function runs it. */
7352 doc: /* Non-nil means to use `mode-line-inactive' face in non-selected windows. 7352 doc: /* Non-nil means to use `mode-line-inactive' face in non-selected windows.
7353If the minibuffer is active, the `minibuffer-scroll-window' mode line 7353If the minibuffer is active, the `minibuffer-scroll-window' mode line
7354is displayed in the `mode-line' face. */); 7354is displayed in the `mode-line' face. */);
7355 mode_line_in_non_selected_windows = 1; 7355 mode_line_in_non_selected_windows = true;
7356 7356
7357 DEFVAR_LISP ("other-window-scroll-buffer", Vother_window_scroll_buffer, 7357 DEFVAR_LISP ("other-window-scroll-buffer", Vother_window_scroll_buffer,
7358 doc: /* If this is a live buffer, \\[scroll-other-window] should scroll its window. */); 7358 doc: /* If this is a live buffer, \\[scroll-other-window] should scroll its window. */);
@@ -7360,7 +7360,7 @@ is displayed in the `mode-line' face. */);
7360 7360
7361 DEFVAR_BOOL ("auto-window-vscroll", auto_window_vscroll_p, 7361 DEFVAR_BOOL ("auto-window-vscroll", auto_window_vscroll_p,
7362 doc: /* Non-nil means to automatically adjust `window-vscroll' to view tall lines. */); 7362 doc: /* Non-nil means to automatically adjust `window-vscroll' to view tall lines. */);
7363 auto_window_vscroll_p = 1; 7363 auto_window_vscroll_p = true;
7364 7364
7365 DEFVAR_INT ("next-screen-context-lines", next_screen_context_lines, 7365 DEFVAR_INT ("next-screen-context-lines", next_screen_context_lines,
7366 doc: /* Number of lines of continuity when scrolling by screenfuls. */); 7366 doc: /* Number of lines of continuity when scrolling by screenfuls. */);
@@ -7483,7 +7483,7 @@ all functions that symmetrically resize a parent window.
7483Note that when a frame's pixel size is not a multiple of the 7483Note that when a frame's pixel size is not a multiple of the
7484frame's character size, at least one window may get resized 7484frame's character size, at least one window may get resized
7485pixelwise even if this option is nil. */); 7485pixelwise even if this option is nil. */);
7486 window_resize_pixelwise = 0; 7486 window_resize_pixelwise = false;
7487 7487
7488 DEFVAR_BOOL ("fast-but-imprecise-scrolling", 7488 DEFVAR_BOOL ("fast-but-imprecise-scrolling",
7489 Vfast_but_imprecise_scrolling, 7489 Vfast_but_imprecise_scrolling,
@@ -7494,7 +7494,7 @@ are actually going to be displayed get fontified.
7494 7494
7495Note that this optimization can cause the portion of the buffer 7495Note that this optimization can cause the portion of the buffer
7496displayed after a scrolling operation to be somewhat inaccurate. */); 7496displayed after a scrolling operation to be somewhat inaccurate. */);
7497 Vfast_but_imprecise_scrolling = 0; 7497 Vfast_but_imprecise_scrolling = false;
7498 7498
7499 defsubr (&Sselected_window); 7499 defsubr (&Sselected_window);
7500 defsubr (&Sminibuffer_window); 7500 defsubr (&Sminibuffer_window);
diff --git a/src/xdisp.c b/src/xdisp.c
index 48a2979dcde..0e3e1a2bb69 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -905,7 +905,7 @@ static void iterate_out_of_display_property (struct it *);
905static void pop_it (struct it *); 905static void pop_it (struct it *);
906static void sync_frame_with_window_matrix_rows (struct window *); 906static void sync_frame_with_window_matrix_rows (struct window *);
907static void redisplay_internal (void); 907static void redisplay_internal (void);
908static int echo_area_display (int); 908static bool echo_area_display (bool);
909static void redisplay_windows (Lisp_Object); 909static void redisplay_windows (Lisp_Object);
910static void redisplay_window (Lisp_Object, bool); 910static void redisplay_window (Lisp_Object, bool);
911static Lisp_Object redisplay_window_error (Lisp_Object); 911static Lisp_Object redisplay_window_error (Lisp_Object);
@@ -10275,9 +10275,9 @@ message3_nolog (Lisp_Object m)
10275 else 10275 else
10276 clear_message (true, true); 10276 clear_message (true, true);
10277 10277
10278 do_pending_window_change (0); 10278 do_pending_window_change (false);
10279 echo_area_display (1); 10279 echo_area_display (true);
10280 do_pending_window_change (0); 10280 do_pending_window_change (false);
10281 if (FRAME_TERMINAL (f)->frame_up_to_date_hook) 10281 if (FRAME_TERMINAL (f)->frame_up_to_date_hook)
10282 (*FRAME_TERMINAL (f)->frame_up_to_date_hook) (f); 10282 (*FRAME_TERMINAL (f)->frame_up_to_date_hook) (f);
10283 } 10283 }
@@ -11248,13 +11248,13 @@ clear_garbaged_frames (void)
11248 is non-zero update selected_frame. Value is non-zero if the 11248 is non-zero update selected_frame. Value is non-zero if the
11249 mini-windows height has been changed. */ 11249 mini-windows height has been changed. */
11250 11250
11251static int 11251static bool
11252echo_area_display (int update_frame_p) 11252echo_area_display (bool update_frame_p)
11253{ 11253{
11254 Lisp_Object mini_window; 11254 Lisp_Object mini_window;
11255 struct window *w; 11255 struct window *w;
11256 struct frame *f; 11256 struct frame *f;
11257 int window_height_changed_p = 0; 11257 bool window_height_changed_p = false;
11258 struct frame *sf = SELECTED_FRAME (); 11258 struct frame *sf = SELECTED_FRAME ();
11259 11259
11260 mini_window = FRAME_MINIBUF_WINDOW (sf); 11260 mini_window = FRAME_MINIBUF_WINDOW (sf);
@@ -11317,11 +11317,11 @@ echo_area_display (int update_frame_p)
11317 /* Window configuration is the same as before. 11317 /* Window configuration is the same as before.
11318 Can do with a display update of the echo area, 11318 Can do with a display update of the echo area,
11319 unless we displayed some mode lines. */ 11319 unless we displayed some mode lines. */
11320 update_single_window (w, 1); 11320 update_single_window (w);
11321 flush_frame (f); 11321 flush_frame (f);
11322 } 11322 }
11323 else 11323 else
11324 update_frame (f, 1, 1); 11324 update_frame (f, true, true);
11325 11325
11326 /* If cursor is in the echo area, make sure that the next 11326 /* If cursor is in the echo area, make sure that the next
11327 redisplay displays the minibuffer, so that the cursor will 11327 redisplay displays the minibuffer, so that the cursor will
@@ -13435,7 +13435,7 @@ redisplay_internal (void)
13435 struct window *w = XWINDOW (selected_window); 13435 struct window *w = XWINDOW (selected_window);
13436 struct window *sw; 13436 struct window *sw;
13437 struct frame *fr; 13437 struct frame *fr;
13438 int pending; 13438 bool pending;
13439 bool must_finish = 0, match_p; 13439 bool must_finish = 0, match_p;
13440 struct text_pos tlbufpos, tlendpos; 13440 struct text_pos tlbufpos, tlendpos;
13441 int number_of_visible_frames; 13441 int number_of_visible_frames;
@@ -13495,7 +13495,7 @@ redisplay_internal (void)
13495 /* Remember the currently selected window. */ 13495 /* Remember the currently selected window. */
13496 sw = w; 13496 sw = w;
13497 13497
13498 pending = 0; 13498 pending = false;
13499 last_escape_glyph_frame = NULL; 13499 last_escape_glyph_frame = NULL;
13500 last_escape_glyph_face_id = (1 << FACE_ID_BITS); 13500 last_escape_glyph_face_id = (1 << FACE_ID_BITS);
13501 last_glyphless_glyph_frame = NULL; 13501 last_glyphless_glyph_frame = NULL;
@@ -13547,7 +13547,7 @@ redisplay_internal (void)
13547 } 13547 }
13548 13548
13549 /* Notice any pending interrupt request to change frame size. */ 13549 /* Notice any pending interrupt request to change frame size. */
13550 do_pending_window_change (1); 13550 do_pending_window_change (true);
13551 13551
13552 /* do_pending_window_change could change the selected_window due to 13552 /* do_pending_window_change could change the selected_window due to
13553 frame resizing which makes the selected window too small. */ 13553 frame resizing which makes the selected window too small. */
@@ -13594,7 +13594,7 @@ redisplay_internal (void)
13594 echo-area doesn't show through. */ 13594 echo-area doesn't show through. */
13595 && !MINI_WINDOW_P (XWINDOW (selected_window)))) 13595 && !MINI_WINDOW_P (XWINDOW (selected_window))))
13596 { 13596 {
13597 int window_height_changed_p = echo_area_display (0); 13597 int window_height_changed_p = echo_area_display (false);
13598 13598
13599 if (message_cleared_p) 13599 if (message_cleared_p)
13600 update_miniwindow_p = true; 13600 update_miniwindow_p = true;
@@ -13802,7 +13802,7 @@ redisplay_internal (void)
13802 { 13802 {
13803 if (!must_finish) 13803 if (!must_finish)
13804 { 13804 {
13805 do_pending_window_change (1); 13805 do_pending_window_change (true);
13806 /* If selected_window changed, redisplay again. */ 13806 /* If selected_window changed, redisplay again. */
13807 if (WINDOWP (selected_window) 13807 if (WINDOWP (selected_window)
13808 && (w = XWINDOW (selected_window)) != sw) 13808 && (w = XWINDOW (selected_window)) != sw)
@@ -13919,14 +13919,14 @@ redisplay_internal (void)
13919 if (f->fonts_changed) 13919 if (f->fonts_changed)
13920 { 13920 {
13921 adjust_frame_glyphs (f); 13921 adjust_frame_glyphs (f);
13922 f->fonts_changed = 0; 13922 f->fonts_changed = false;
13923 goto retry_frame; 13923 goto retry_frame;
13924 } 13924 }
13925 13925
13926 /* See if we have to hscroll. */ 13926 /* See if we have to hscroll. */
13927 if (!f->already_hscrolled_p) 13927 if (!f->already_hscrolled_p)
13928 { 13928 {
13929 f->already_hscrolled_p = 1; 13929 f->already_hscrolled_p = true;
13930 if (hscroll_windows (f->root_window)) 13930 if (hscroll_windows (f->root_window))
13931 goto retry_frame; 13931 goto retry_frame;
13932 } 13932 }
@@ -13938,9 +13938,9 @@ redisplay_internal (void)
13938 unrequest_sigio (); 13938 unrequest_sigio ();
13939 STOP_POLLING; 13939 STOP_POLLING;
13940 13940
13941 pending |= update_frame (f, 0, 0); 13941 pending |= update_frame (f, false, false);
13942 f->cursor_type_changed = 0; 13942 f->cursor_type_changed = false;
13943 f->updated_p = 1; 13943 f->updated_p = true;
13944 } 13944 }
13945 } 13945 }
13946 } 13946 }
@@ -14001,8 +14001,8 @@ redisplay_internal (void)
14001 goto retry; 14001 goto retry;
14002 14002
14003 XWINDOW (selected_window)->must_be_updated_p = true; 14003 XWINDOW (selected_window)->must_be_updated_p = true;
14004 pending = update_frame (sf, 0, 0); 14004 pending = update_frame (sf, false, false);
14005 sf->cursor_type_changed = 0; 14005 sf->cursor_type_changed = false;
14006 } 14006 }
14007 14007
14008 /* We may have called echo_area_display at the top of this 14008 /* We may have called echo_area_display at the top of this
@@ -14016,8 +14016,8 @@ redisplay_internal (void)
14016 if (mini_frame != sf && FRAME_WINDOW_P (mini_frame)) 14016 if (mini_frame != sf && FRAME_WINDOW_P (mini_frame))
14017 { 14017 {
14018 XWINDOW (mini_window)->must_be_updated_p = true; 14018 XWINDOW (mini_window)->must_be_updated_p = true;
14019 pending |= update_frame (mini_frame, 0, 0); 14019 pending |= update_frame (mini_frame, false, false);
14020 mini_frame->cursor_type_changed = 0; 14020 mini_frame->cursor_type_changed = false;
14021 if (!pending && hscroll_windows (mini_window)) 14021 if (!pending && hscroll_windows (mini_window))
14022 goto retry; 14022 goto retry;
14023 } 14023 }
@@ -14094,7 +14094,7 @@ redisplay_internal (void)
14094 } 14094 }
14095 14095
14096 /* Change frame size now if a change is pending. */ 14096 /* Change frame size now if a change is pending. */
14097 do_pending_window_change (1); 14097 do_pending_window_change (true);
14098 14098
14099 /* If we just did a pending size change, or have additional 14099 /* If we just did a pending size change, or have additional
14100 visible frames, or selected_window changed, redisplay again. */ 14100 visible frames, or selected_window changed, redisplay again. */
@@ -14110,7 +14110,7 @@ redisplay_internal (void)
14110 14110
14111 if (clear_face_cache_count > CLEAR_FACE_CACHE_COUNT) 14111 if (clear_face_cache_count > CLEAR_FACE_CACHE_COUNT)
14112 { 14112 {
14113 clear_face_cache (0); 14113 clear_face_cache (false);
14114 clear_face_cache_count = 0; 14114 clear_face_cache_count = 0;
14115 } 14115 }
14116 14116
@@ -14154,9 +14154,9 @@ redisplay_preserve_echo_area (int from_where)
14154 { 14154 {
14155 /* We have a previously displayed message, but no current 14155 /* We have a previously displayed message, but no current
14156 message. Redisplay the previous message. */ 14156 message. Redisplay the previous message. */
14157 display_last_displayed_message_p = 1; 14157 display_last_displayed_message_p = true;
14158 redisplay_internal (); 14158 redisplay_internal ();
14159 display_last_displayed_message_p = 0; 14159 display_last_displayed_message_p = false;
14160 } 14160 }
14161 else 14161 else
14162 redisplay_internal (); 14162 redisplay_internal ();
diff --git a/src/xfaces.c b/src/xfaces.c
index 446107ef3b7..fbdd3c8bfe8 100644
--- a/src/xfaces.c
+++ b/src/xfaces.c
@@ -732,7 +732,7 @@ recompute_basic_faces (struct frame *f)
732 try to free unused fonts, too. */ 732 try to free unused fonts, too. */
733 733
734void 734void
735clear_face_cache (int clear_fonts_p) 735clear_face_cache (bool clear_fonts_p)
736{ 736{
737#ifdef HAVE_WINDOW_SYSTEM 737#ifdef HAVE_WINDOW_SYSTEM
738 Lisp_Object tail, frame; 738 Lisp_Object tail, frame;
diff --git a/src/xfns.c b/src/xfns.c
index 59715d0718e..1b17311f99c 100644
--- a/src/xfns.c
+++ b/src/xfns.c
@@ -5577,8 +5577,8 @@ Text larger than the specified size is clipped. */)
5577 unblock_input (); 5577 unblock_input ();
5578 5578
5579 /* Draw into the window. */ 5579 /* Draw into the window. */
5580 w->must_be_updated_p = 1; 5580 w->must_be_updated_p = true;
5581 update_single_window (w, 1); 5581 update_single_window (w);
5582 5582
5583 /* Restore original current buffer. */ 5583 /* Restore original current buffer. */
5584 set_buffer_internal_1 (old_buffer); 5584 set_buffer_internal_1 (old_buffer);