aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorStefan Monnier2023-07-16 21:12:20 -0400
committerStefan Monnier2023-07-16 21:12:20 -0400
commit207cd4c23570dc1cb1fdb57a70c67a3be5cefe33 (patch)
tree355bfa4a120095dc72f23e82d31b79094f3744b2 /src
parenta65ece8b2011bd69922262a6fbcf68c2e2c2a717 (diff)
downloademacs-207cd4c23570dc1cb1fdb57a70c67a3be5cefe33.tar.gz
emacs-207cd4c23570dc1cb1fdb57a70c67a3be5cefe33.zip
xdisp.c: Improve doc of `redisplay` flags a bit
Diffstat (limited to 'src')
-rw-r--r--src/window.h11
-rw-r--r--src/xdisp.c5
2 files changed, 12 insertions, 4 deletions
diff --git a/src/window.h b/src/window.h
index 2f793ebe438..9da6126c321 100644
--- a/src/window.h
+++ b/src/window.h
@@ -1114,9 +1114,11 @@ void set_window_buffer (Lisp_Object window, Lisp_Object buffer,
1114 1114
1115extern Lisp_Object echo_area_window; 1115extern Lisp_Object echo_area_window;
1116 1116
1117/* Non-zero if we should redraw the mode lines on the next redisplay. 1117/* Non-zero if we should redraw the mode line*s* on the next redisplay.
1118 Usually set to a unique small integer so we can track the main causes of 1118 Usually set to a unique small integer so we can track the main causes of
1119 full redisplays in `redisplay--mode-lines-cause'. */ 1119 full redisplays in `redisplay--mode-lines-cause'.
1120 Here "mode lines" includes other elements not coming from the buffer's
1121 text, such as header-lines, tab lines, frame names, menu-bars, .... */
1120 1122
1121extern int update_mode_lines; 1123extern int update_mode_lines;
1122 1124
@@ -1134,6 +1136,11 @@ extern int windows_or_buffers_changed;
1134extern void wset_redisplay (struct window *w); 1136extern void wset_redisplay (struct window *w);
1135extern void fset_redisplay (struct frame *f); 1137extern void fset_redisplay (struct frame *f);
1136extern void bset_redisplay (struct buffer *b); 1138extern void bset_redisplay (struct buffer *b);
1139
1140/* Routines to indicate that the mode-lines might need to be redisplayed.
1141 Just as for `update_mode_lines`, this includes other elements not coming
1142 from the buffer's text, such as header-lines, tab lines, frame names,
1143 menu-bars, .... */
1137extern void bset_update_mode_line (struct buffer *b); 1144extern void bset_update_mode_line (struct buffer *b);
1138extern void wset_update_mode_line (struct window *w); 1145extern void wset_update_mode_line (struct window *w);
1139/* Call this to tell redisplay to look for other windows than selected-window 1146/* Call this to tell redisplay to look for other windows than selected-window
diff --git a/src/xdisp.c b/src/xdisp.c
index a3464c2c375..5d94dc003f3 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -16490,8 +16490,9 @@ redisplay_internal (void)
16490 enum {MAX_GARBAGED_FRAME_RETRIES = 2 }; 16490 enum {MAX_GARBAGED_FRAME_RETRIES = 2 };
16491 int garbaged_frame_retries = 0; 16491 int garbaged_frame_retries = 0;
16492 16492
16493 /* True means redisplay has to consider all windows on all 16493 /* False means that only the selected_window needs to be updated.
16494 frames. False, only selected_window is considered. */ 16494 True means that other windows may need to be updated as well,
16495 so we need to consult `needs_no_update` for all windows. */
16495 bool consider_all_windows_p; 16496 bool consider_all_windows_p;
16496 16497
16497 /* True means redisplay has to redisplay the miniwindow. */ 16498 /* True means redisplay has to redisplay the miniwindow. */