aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorStefan Monnier2013-11-05 23:11:04 -0500
committerStefan Monnier2013-11-05 23:11:04 -0500
commit94ae2ad44cfd711c836e0fbd86b9e133724482d5 (patch)
treea7ecfb60f2bd55f60bf5c5fe3d5e49c12e846ac4 /src
parentfeca4e2db9d9dd539b09da9c19f49865952b184d (diff)
downloademacs-94ae2ad44cfd711c836e0fbd86b9e133724482d5.tar.gz
emacs-94ae2ad44cfd711c836e0fbd86b9e133724482d5.zip
*.[chm]: Number every assignment to windows_or_buffers_changed.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog21
-rw-r--r--src/buffer.c6
-rw-r--r--src/dispnew.c2
-rw-r--r--src/frame.c10
-rw-r--r--src/image.c2
-rw-r--r--src/insdel.c2
-rw-r--r--src/keyboard.c2
-rw-r--r--src/minibuf.c2
-rw-r--r--src/nsfns.m14
-rw-r--r--src/nsterm.m2
-rw-r--r--src/w32fns.c2
-rw-r--r--src/window.c34
-rw-r--r--src/xdisp.c24
-rw-r--r--src/xfaces.c14
-rw-r--r--src/xfns.c6
15 files changed, 74 insertions, 69 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 6f6b3a26f92..b0e67c6e249 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,10 +1,15 @@
12013-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * *.[chm]: Number every assignment to windows_or_buffers_changed so we
4 can track why it is set.
5
12013-11-06 Paul Eggert <eggert@cs.ucla.edu> 62013-11-06 Paul Eggert <eggert@cs.ucla.edu>
2 7
3 Integer-related fixes for term.c etc. 8 Integer-related fixes for term.c etc.
4 * dispextern.h (face_tty_specified_color): New function. 9 * dispextern.h (face_tty_specified_color): New function.
5 * term.c (turn_on_face): Don't rely on undefined behavior when 10 * term.c (turn_on_face): Don't rely on undefined behavior when
6 assigning an out-of-range value to 'long'. Simplify 11 assigning an out-of-range value to 'long'.
7 test for toggling highlight. 12 Simplify test for toggling highlight.
8 (tty_capable_p): Omit last two (unused) args. All callers changed. 13 (tty_capable_p): Omit last two (unused) args. All callers changed.
9 * term.c (tty_capable_p, tty_menu_display, tty_menu_add_selection) 14 * term.c (tty_capable_p, tty_menu_display, tty_menu_add_selection)
10 (read_menu_input, tty_menu_activate, tty_menu_show): 15 (read_menu_input, tty_menu_activate, tty_menu_show):
@@ -232,8 +237,8 @@
232 237
2332013-11-02 Jan Djärv <jan.h.d@swipnet.se> 2382013-11-02 Jan Djärv <jan.h.d@swipnet.se>
234 239
235 * xfaces.c (check_lface_attrs, realize_default_face): Add 240 * xfaces.c (check_lface_attrs, realize_default_face):
236 LFACE_DISTANT_FOREGROUND_INDEX (Bug#15788). 241 Add LFACE_DISTANT_FOREGROUND_INDEX (Bug#15788).
237 (realize_default_face): Set DISTANT_FOREGROUND to unspecified_fg. 242 (realize_default_face): Set DISTANT_FOREGROUND to unspecified_fg.
238 243
2392013-11-02 Paul Eggert <eggert@cs.ucla.edu> 2442013-11-02 Paul Eggert <eggert@cs.ucla.edu>
@@ -257,13 +262,13 @@
257 foreground. 262 foreground.
258 (syms_of_xfaces): DEFSYM QCdistant_foreground. 263 (syms_of_xfaces): DEFSYM QCdistant_foreground.
259 264
260 * dispextern.h (lface_attribute_index): Add 265 * dispextern.h (lface_attribute_index):
261 LFACE_DISTANT_FOREGROUND_INDEX. 266 Add LFACE_DISTANT_FOREGROUND_INDEX.
262 267
2632013-11-01 Claudio Bley <claudio.bley@googlemail.com> 2682013-11-01 Claudio Bley <claudio.bley@googlemail.com>
264 269
265 * image.c (pbm_next_char): New function. See 270 * image.c (pbm_next_char): New function.
266 http://netpbm.sourceforge.net/doc/pbm.html for the details. 271 See http://netpbm.sourceforge.net/doc/pbm.html for the details.
267 (pbm_scan_number): Use it. 272 (pbm_scan_number): Use it.
268 (Qlibjpeg_version): New variable. 273 (Qlibjpeg_version): New variable.
269 (syms_of_image): DEFSYM and initialize it. 274 (syms_of_image): DEFSYM and initialize it.
diff --git a/src/buffer.c b/src/buffer.c
index 63198cd1018..9aed1909bbd 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -2705,7 +2705,7 @@ current buffer is cleared. */)
2705 2705
2706 /* If buffer is shown in a window, let redisplay consider other windows. */ 2706 /* If buffer is shown in a window, let redisplay consider other windows. */
2707 if (buffer_window_count (current_buffer)) 2707 if (buffer_window_count (current_buffer))
2708 ++windows_or_buffers_changed; 2708 windows_or_buffers_changed = 10;
2709 2709
2710 /* Copy this buffer's new multibyte status 2710 /* Copy this buffer's new multibyte status
2711 into all of its indirect buffers. */ 2711 into all of its indirect buffers. */
@@ -3911,11 +3911,11 @@ modify_overlay (struct buffer *buf, ptrdiff_t start, ptrdiff_t end)
3911 { 3911 {
3912 /* ... it's visible in other window than selected, */ 3912 /* ... it's visible in other window than selected, */
3913 if (buf != XBUFFER (XWINDOW (selected_window)->contents)) 3913 if (buf != XBUFFER (XWINDOW (selected_window)->contents))
3914 windows_or_buffers_changed = 1; 3914 windows_or_buffers_changed = 11;
3915 /* ... or if we modify an overlay at the end of the buffer 3915 /* ... or if we modify an overlay at the end of the buffer
3916 and so we cannot be sure that window end is still valid. */ 3916 and so we cannot be sure that window end is still valid. */
3917 else if (end >= ZV && start <= ZV) 3917 else if (end >= ZV && start <= ZV)
3918 windows_or_buffers_changed = 1; 3918 windows_or_buffers_changed = 12;
3919 } 3919 }
3920 3920
3921 ++BUF_OVERLAY_MODIFF (buf); 3921 ++BUF_OVERLAY_MODIFF (buf);
diff --git a/src/dispnew.c b/src/dispnew.c
index 0379573b50a..3207f4a0018 100644
--- a/src/dispnew.c
+++ b/src/dispnew.c
@@ -2940,7 +2940,7 @@ redraw_frame (struct frame *f)
2940 clear_frame (f); 2940 clear_frame (f);
2941 clear_current_matrices (f); 2941 clear_current_matrices (f);
2942 update_end (f); 2942 update_end (f);
2943 windows_or_buffers_changed++; 2943 windows_or_buffers_changed = 13;
2944 /* Mark all windows as inaccurate, so that every window will have 2944 /* Mark all windows as inaccurate, so that every window will have
2945 its redisplay done. */ 2945 its redisplay done. */
2946 mark_window_display_accurate (FRAME_ROOT_WINDOW (f), 0); 2946 mark_window_display_accurate (FRAME_ROOT_WINDOW (f), 0);
diff --git a/src/frame.c b/src/frame.c
index 14e8fabd149..05f74e4b621 100644
--- a/src/frame.c
+++ b/src/frame.c
@@ -231,7 +231,7 @@ set_menu_bar_lines (struct frame *f, Lisp_Object value, Lisp_Object oldval)
231 231
232 if (nlines != olines) 232 if (nlines != olines)
233 { 233 {
234 windows_or_buffers_changed++; 234 windows_or_buffers_changed = 14;
235 FRAME_WINDOW_SIZES_CHANGED (f) = 1; 235 FRAME_WINDOW_SIZES_CHANGED (f) = 1;
236 FRAME_MENU_BAR_LINES (f) = nlines; 236 FRAME_MENU_BAR_LINES (f) = nlines;
237 set_menu_bar_lines_1 (f->root_window, nlines - olines); 237 set_menu_bar_lines_1 (f->root_window, nlines - olines);
@@ -1699,7 +1699,7 @@ If omitted, FRAME defaults to the currently selected frame. */)
1699 make_frame_visible_1 (f->root_window); 1699 make_frame_visible_1 (f->root_window);
1700 1700
1701 /* Make menu bar update for the Buffers and Frames menus. */ 1701 /* Make menu bar update for the Buffers and Frames menus. */
1702 windows_or_buffers_changed++; 1702 windows_or_buffers_changed = 15;
1703 1703
1704 XSETFRAME (frame, f); 1704 XSETFRAME (frame, f);
1705 return frame; 1705 return frame;
@@ -1753,7 +1753,7 @@ displayed in the terminal. */)
1753#endif 1753#endif
1754 1754
1755 /* Make menu bar update for the Buffers and Frames menus. */ 1755 /* Make menu bar update for the Buffers and Frames menus. */
1756 windows_or_buffers_changed++; 1756 windows_or_buffers_changed = 16;
1757 1757
1758 return Qnil; 1758 return Qnil;
1759} 1759}
@@ -1776,7 +1776,7 @@ If omitted, FRAME defaults to the currently selected frame. */)
1776#endif 1776#endif
1777 1777
1778 /* Make menu bar update for the Buffers and Frames menus. */ 1778 /* Make menu bar update for the Buffers and Frames menus. */
1779 windows_or_buffers_changed++; 1779 windows_or_buffers_changed = 17;
1780 1780
1781 return Qnil; 1781 return Qnil;
1782} 1782}
@@ -3245,7 +3245,7 @@ x_set_font_backend (struct frame *f, Lisp_Object new_value, Lisp_Object old_valu
3245 XSETFRAME (frame, f); 3245 XSETFRAME (frame, f);
3246 x_set_font (f, Fframe_parameter (frame, Qfont), Qnil); 3246 x_set_font (f, Fframe_parameter (frame, Qfont), Qnil);
3247 ++face_change_count; 3247 ++face_change_count;
3248 ++windows_or_buffers_changed; 3248 windows_or_buffers_changed = 18;
3249 } 3249 }
3250} 3250}
3251 3251
diff --git a/src/image.c b/src/image.c
index 02565fa7b08..37a19e4f5a5 100644
--- a/src/image.c
+++ b/src/image.c
@@ -1521,7 +1521,7 @@ clear_image_cache (struct frame *f, Lisp_Object filter)
1521 clear_current_matrices (fr); 1521 clear_current_matrices (fr);
1522 } 1522 }
1523 1523
1524 ++windows_or_buffers_changed; 1524 windows_or_buffers_changed = 19;
1525 } 1525 }
1526 1526
1527 unblock_input (); 1527 unblock_input ();
diff --git a/src/insdel.c b/src/insdel.c
index 08349fffe45..4b8ab19fe24 100644
--- a/src/insdel.c
+++ b/src/insdel.c
@@ -1803,7 +1803,7 @@ prepare_to_modify_buffer_1 (ptrdiff_t start, ptrdiff_t end,
1803 let redisplay consider other windows if this buffer is visible. */ 1803 let redisplay consider other windows if this buffer is visible. */
1804 if (XBUFFER (XWINDOW (selected_window)->contents) != current_buffer 1804 if (XBUFFER (XWINDOW (selected_window)->contents) != current_buffer
1805 && buffer_window_count (current_buffer)) 1805 && buffer_window_count (current_buffer))
1806 ++windows_or_buffers_changed; 1806 windows_or_buffers_changed = 20;
1807 1807
1808 if (buffer_intervals (current_buffer)) 1808 if (buffer_intervals (current_buffer))
1809 { 1809 {
diff --git a/src/keyboard.c b/src/keyboard.c
index 9dba631986b..81713dc5115 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -1667,7 +1667,7 @@ command_loop_1 (void)
1667 cluster to prevent automatic composition. To recover 1667 cluster to prevent automatic composition. To recover
1668 the automatic composition, we must update the 1668 the automatic composition, we must update the
1669 display. */ 1669 display. */
1670 windows_or_buffers_changed++; 1670 windows_or_buffers_changed = 21;
1671 if (!already_adjusted) 1671 if (!already_adjusted)
1672 adjust_point_for_property (last_point_position, 1672 adjust_point_for_property (last_point_position,
1673 MODIFF != prev_modiff); 1673 MODIFF != prev_modiff);
diff --git a/src/minibuf.c b/src/minibuf.c
index cc6f234f7da..7ca4dae089b 100644
--- a/src/minibuf.c
+++ b/src/minibuf.c
@@ -866,7 +866,7 @@ read_minibuf_unwind (void)
866 resize_mini_window (XWINDOW (window), 0); 866 resize_mini_window (XWINDOW (window), 0);
867 867
868 /* Enforce full redisplay. FIXME: make it more selective. */ 868 /* Enforce full redisplay. FIXME: make it more selective. */
869 windows_or_buffers_changed++; 869 windows_or_buffers_changed = 22;
870 870
871 /* In case the previous minibuffer displayed in this miniwindow is 871 /* In case the previous minibuffer displayed in this miniwindow is
872 dead, we may keep displaying this buffer (tho it's inactive), so reset it, 872 dead, we may keep displaying this buffer (tho it's inactive), so reset it,
diff --git a/src/nsfns.m b/src/nsfns.m
index ee36439b1b4..7dea868e341 100644
--- a/src/nsfns.m
+++ b/src/nsfns.m
@@ -403,23 +403,23 @@ x_set_icon_name (struct frame *f, Lisp_Object arg, Lisp_Object oldval)
403 if (!NILP (f->title)) 403 if (!NILP (f->title))
404 arg = f->title; 404 arg = f->title;
405 else 405 else
406 /* explicit name and no icon-name -> explicit_name */ 406 /* Explicit name and no icon-name -> explicit_name. */
407 if (f->explicit_name) 407 if (f->explicit_name)
408 arg = f->name; 408 arg = f->name;
409 else 409 else
410 { 410 {
411 /* no explicit name and no icon-name -> 411 /* No explicit name and no icon-name ->
412 name has to be rebuild from icon_title_format */ 412 name has to be rebuild from icon_title_format. */
413 windows_or_buffers_changed++; 413 windows_or_buffers_changed = 62;
414 return; 414 return;
415 } 415 }
416 } 416 }
417 417
418 /* Don't change the name if it's already NAME. */ 418 /* Don't change the name if it's already NAME. */
419 if ([[view window] miniwindowTitle] && 419 if ([[view window] miniwindowTitle]
420 ([[[view window] miniwindowTitle] 420 && ([[[view window] miniwindowTitle]
421 isEqualToString: [NSString stringWithUTF8String: 421 isEqualToString: [NSString stringWithUTF8String:
422 SSDATA (arg)]])) 422 SSDATA (arg)]]))
423 return; 423 return;
424 424
425 [[view window] setMiniwindowTitle: 425 [[view window] setMiniwindowTitle:
diff --git a/src/nsterm.m b/src/nsterm.m
index 12f182968b3..0e7667b6dc6 100644
--- a/src/nsterm.m
+++ b/src/nsterm.m
@@ -6089,7 +6089,7 @@ if (cols > 0 && rows > 0)
6089 6089
6090 SET_FRAME_ICONIFIED (emacsframe, 0); 6090 SET_FRAME_ICONIFIED (emacsframe, 0);
6091 SET_FRAME_VISIBLE (emacsframe, 1); 6091 SET_FRAME_VISIBLE (emacsframe, 1);
6092 windows_or_buffers_changed++; 6092 windows_or_buffers_changed = 63;
6093 6093
6094 if (emacs_event) 6094 if (emacs_event)
6095 { 6095 {
diff --git a/src/w32fns.c b/src/w32fns.c
index c98c84c8542..84a504e84c2 100644
--- a/src/w32fns.c
+++ b/src/w32fns.c
@@ -1664,7 +1664,7 @@ x_set_tool_bar_lines (struct frame *f, Lisp_Object value, Lisp_Object oldval)
1664 nlines = 0; 1664 nlines = 0;
1665 1665
1666 /* Make sure we redisplay all windows in this frame. */ 1666 /* Make sure we redisplay all windows in this frame. */
1667 ++windows_or_buffers_changed; 1667 windows_or_buffers_changed = 23;
1668 1668
1669 delta = nlines - FRAME_TOOL_BAR_LINES (f); 1669 delta = nlines - FRAME_TOOL_BAR_LINES (f);
1670 1670
diff --git a/src/window.c b/src/window.c
index cb505eda819..ac6bac42800 100644
--- a/src/window.c
+++ b/src/window.c
@@ -500,7 +500,7 @@ select_window (Lisp_Object window, Lisp_Object norecord, int inhibit_point_swap)
500 500
501 select_window_1 (window, inhibit_point_swap); 501 select_window_1 (window, inhibit_point_swap);
502 bset_last_selected_window (XBUFFER (w->contents), window); 502 bset_last_selected_window (XBUFFER (w->contents), window);
503 windows_or_buffers_changed++; 503 windows_or_buffers_changed = 24;
504 504
505 record_and_return: 505 record_and_return:
506 /* record_buffer can run QUIT, so make sure it is run only after we have 506 /* record_buffer can run QUIT, so make sure it is run only after we have
@@ -1553,7 +1553,7 @@ Return POS. */)
1553 set_marker_restricted (w->pointm, pos, w->contents); 1553 set_marker_restricted (w->pointm, pos, w->contents);
1554 /* We have to make sure that redisplay updates the window to show 1554 /* We have to make sure that redisplay updates the window to show
1555 the new value of point. */ 1555 the new value of point. */
1556 ++windows_or_buffers_changed; 1556 windows_or_buffers_changed = 25;
1557 } 1557 }
1558 1558
1559 return pos; 1559 return pos;
@@ -1576,7 +1576,7 @@ overriding motion of point in order to display at this exact start. */)
1576 w->update_mode_line = 1; 1576 w->update_mode_line = 1;
1577 if (w != XWINDOW (selected_window)) 1577 if (w != XWINDOW (selected_window))
1578 /* Enforce full redisplay. FIXME: make it more selective. */ 1578 /* Enforce full redisplay. FIXME: make it more selective. */
1579 windows_or_buffers_changed++; 1579 windows_or_buffers_changed = 26;
1580 1580
1581 return pos; 1581 return pos;
1582} 1582}
@@ -2837,7 +2837,7 @@ window-start value is reasonable when this function is called. */)
2837 } 2837 }
2838 free_window_matrices (r); 2838 free_window_matrices (r);
2839 2839
2840 windows_or_buffers_changed++; 2840 windows_or_buffers_changed = 27;
2841 Vwindow_list = Qnil; 2841 Vwindow_list = Qnil;
2842 FRAME_WINDOW_SIZES_CHANGED (f) = 1; 2842 FRAME_WINDOW_SIZES_CHANGED (f) = 1;
2843 resize_failed = 0; 2843 resize_failed = 0;
@@ -3171,7 +3171,7 @@ set_window_buffer (Lisp_Object window, Lisp_Object buffer,
3171 } 3171 }
3172 /* Maybe we could move this into the `if' but it's not obviously safe and 3172 /* Maybe we could move this into the `if' but it's not obviously safe and
3173 I doubt it's worth the trouble. */ 3173 I doubt it's worth the trouble. */
3174 windows_or_buffers_changed++; 3174 windows_or_buffers_changed = 28;
3175 3175
3176 /* We must select BUFFER for running the window-scroll-functions. */ 3176 /* We must select BUFFER for running the window-scroll-functions. */
3177 /* We can't check ! NILP (Vwindow_scroll_functions) here 3177 /* We can't check ! NILP (Vwindow_scroll_functions) here
@@ -3278,7 +3278,7 @@ displaying that buffer. */)
3278{ 3278{
3279 if (NILP (object)) 3279 if (NILP (object))
3280 { 3280 {
3281 windows_or_buffers_changed++; 3281 windows_or_buffers_changed = 29;
3282 update_mode_lines++; 3282 update_mode_lines++;
3283 return Qt; 3283 return Qt;
3284 } 3284 }
@@ -3646,7 +3646,7 @@ be applied on the Elisp level. */)
3646 block_input (); 3646 block_input ();
3647 window_resize_apply (r, horflag); 3647 window_resize_apply (r, horflag);
3648 3648
3649 windows_or_buffers_changed++; 3649 windows_or_buffers_changed = 30;
3650 FRAME_WINDOW_SIZES_CHANGED (f) = 1; 3650 FRAME_WINDOW_SIZES_CHANGED (f) = 1;
3651 3651
3652 adjust_frame_glyphs (f); 3652 adjust_frame_glyphs (f);
@@ -3741,7 +3741,7 @@ resize_frame_windows (struct frame *f, int size, bool horflag)
3741 } 3741 }
3742 } 3742 }
3743 3743
3744 windows_or_buffers_changed++; 3744 windows_or_buffers_changed = 31;
3745} 3745}
3746 3746
3747 3747
@@ -3862,7 +3862,7 @@ set correctly. See the code of `split-window' for how this is done. */)
3862 else 3862 else
3863 p = XWINDOW (o->parent); 3863 p = XWINDOW (o->parent);
3864 3864
3865 windows_or_buffers_changed++; 3865 windows_or_buffers_changed = 32;
3866 FRAME_WINDOW_SIZES_CHANGED (f) = 1; 3866 FRAME_WINDOW_SIZES_CHANGED (f) = 1;
3867 new = make_window (); 3867 new = make_window ();
3868 n = XWINDOW (new); 3868 n = XWINDOW (new);
@@ -4012,7 +4012,7 @@ Signal an error when WINDOW is the only window on its frame. */)
4012 hlinfo->mouse_face_window = Qnil; 4012 hlinfo->mouse_face_window = Qnil;
4013 } 4013 }
4014 4014
4015 windows_or_buffers_changed++; 4015 windows_or_buffers_changed = 33;
4016 Vwindow_list = Qnil; 4016 Vwindow_list = Qnil;
4017 FRAME_WINDOW_SIZES_CHANGED (f) = 1; 4017 FRAME_WINDOW_SIZES_CHANGED (f) = 1;
4018 4018
@@ -4134,7 +4134,7 @@ grow_mini_window (struct window *w, int delta)
4134 w->top_line = r->top_line + r->total_lines; 4134 w->top_line = r->top_line + r->total_lines;
4135 w->total_lines -= XINT (value); 4135 w->total_lines -= XINT (value);
4136 /* Enforce full redisplay. FIXME: make it more selective. */ 4136 /* Enforce full redisplay. FIXME: make it more selective. */
4137 windows_or_buffers_changed++; 4137 windows_or_buffers_changed = 34;
4138 adjust_frame_glyphs (f); 4138 adjust_frame_glyphs (f);
4139 unblock_input (); 4139 unblock_input ();
4140 } 4140 }
@@ -4168,7 +4168,7 @@ shrink_mini_window (struct window *w)
4168 w->top_line = r->top_line + r->total_lines; 4168 w->top_line = r->top_line + r->total_lines;
4169 w->total_lines = 1; 4169 w->total_lines = 1;
4170 /* Enforce full redisplay. FIXME: make it more selective. */ 4170 /* Enforce full redisplay. FIXME: make it more selective. */
4171 windows_or_buffers_changed++; 4171 windows_or_buffers_changed = 35;
4172 adjust_frame_glyphs (f); 4172 adjust_frame_glyphs (f);
4173 unblock_input (); 4173 unblock_input ();
4174 } 4174 }
@@ -4208,7 +4208,7 @@ DEFUN ("resize-mini-window-internal", Fresize_mini_window_internal, Sresize_mini
4208 w->total_lines = XFASTINT (w->new_total); 4208 w->total_lines = XFASTINT (w->new_total);
4209 w->top_line = r->top_line + r->total_lines; 4209 w->top_line = r->top_line + r->total_lines;
4210 4210
4211 windows_or_buffers_changed++; 4211 windows_or_buffers_changed = 36;
4212 FRAME_WINDOW_SIZES_CHANGED (f) = 1; 4212 FRAME_WINDOW_SIZES_CHANGED (f) = 1;
4213 adjust_frame_glyphs (f); 4213 adjust_frame_glyphs (f);
4214 unblock_input (); 4214 unblock_input ();
@@ -4830,7 +4830,7 @@ scroll_command (Lisp_Object n, int direction)
4830 Fset_buffer (XWINDOW (selected_window)->contents); 4830 Fset_buffer (XWINDOW (selected_window)->contents);
4831 4831
4832 /* Make redisplay consider other windows than just selected_window. */ 4832 /* Make redisplay consider other windows than just selected_window. */
4833 ++windows_or_buffers_changed; 4833 windows_or_buffers_changed = 37;
4834 } 4834 }
4835 4835
4836 if (NILP (n)) 4836 if (NILP (n))
@@ -4940,7 +4940,7 @@ specifies the window to scroll. This takes precedence over
4940 4940
4941 /* Don't screw up if window_scroll gets an error. */ 4941 /* Don't screw up if window_scroll gets an error. */
4942 record_unwind_protect (save_excursion_restore, save_excursion_save ()); 4942 record_unwind_protect (save_excursion_restore, save_excursion_save ());
4943 ++windows_or_buffers_changed; 4943 windows_or_buffers_changed = 38;
4944 4944
4945 Fset_buffer (w->contents); 4945 Fset_buffer (w->contents);
4946 SET_PT_BOTH (marker_position (w->pointm), marker_byte_position (w->pointm)); 4946 SET_PT_BOTH (marker_position (w->pointm), marker_byte_position (w->pointm));
@@ -5575,7 +5575,7 @@ the return value is nil. Otherwise the value is t. */)
5575 BUF_PT_BYTE (XBUFFER (w->contents))); 5575 BUF_PT_BYTE (XBUFFER (w->contents)));
5576 } 5576 }
5577 5577
5578 windows_or_buffers_changed++; 5578 windows_or_buffers_changed = 39;
5579 FRAME_WINDOW_SIZES_CHANGED (f) = 1; 5579 FRAME_WINDOW_SIZES_CHANGED (f) = 1;
5580 5580
5581 /* Problem: Freeing all matrices and later allocating them again 5581 /* Problem: Freeing all matrices and later allocating them again
@@ -6103,7 +6103,7 @@ apply_window_adjustment (struct window *w)
6103 adjust_window_margins (w); 6103 adjust_window_margins (w);
6104 clear_glyph_matrix (w->current_matrix); 6104 clear_glyph_matrix (w->current_matrix);
6105 w->window_end_valid = 0; 6105 w->window_end_valid = 0;
6106 windows_or_buffers_changed++; 6106 windows_or_buffers_changed = 40;
6107 adjust_frame_glyphs (XFRAME (WINDOW_FRAME (w))); 6107 adjust_frame_glyphs (XFRAME (WINDOW_FRAME (w)));
6108} 6108}
6109 6109
diff --git a/src/xdisp.c b/src/xdisp.c
index 296ab458946..0ec1bd2cea9 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -9633,7 +9633,7 @@ message_dolog (const char *m, ptrdiff_t nbytes, bool nlflag, bool multibyte)
9633 shown in some window. So we must manually incrementing 9633 shown in some window. So we must manually incrementing
9634 windows_or_buffers_changed here to make up for that. */ 9634 windows_or_buffers_changed here to make up for that. */
9635 if (shown) 9635 if (shown)
9636 windows_or_buffers_changed++; 9636 windows_or_buffers_changed = 41;
9637 else 9637 else
9638 windows_or_buffers_changed = old_windows_or_buffers_changed; 9638 windows_or_buffers_changed = old_windows_or_buffers_changed;
9639 message_log_need_newline = !nlflag; 9639 message_log_need_newline = !nlflag;
@@ -10336,7 +10336,7 @@ resize_echo_area_exactly (void)
10336 (intptr_t) w, resize_exactly); 10336 (intptr_t) w, resize_exactly);
10337 if (resized_p) 10337 if (resized_p)
10338 { 10338 {
10339 ++windows_or_buffers_changed; 10339 windows_or_buffers_changed = 42;
10340 ++update_mode_lines; 10340 ++update_mode_lines;
10341 redisplay_internal (); 10341 redisplay_internal ();
10342 } 10342 }
@@ -10733,7 +10733,7 @@ clear_garbaged_frames (void)
10733 10733
10734 frame_garbaged = 0; 10734 frame_garbaged = 0;
10735 if (changed_count) 10735 if (changed_count)
10736 ++windows_or_buffers_changed; 10736 windows_or_buffers_changed = 43;
10737 } 10737 }
10738} 10738}
10739 10739
@@ -10802,7 +10802,7 @@ echo_area_display (int update_frame_p)
10802 pending input. */ 10802 pending input. */
10803 ptrdiff_t count = SPECPDL_INDEX (); 10803 ptrdiff_t count = SPECPDL_INDEX ();
10804 specbind (Qredisplay_dont_pause, Qt); 10804 specbind (Qredisplay_dont_pause, Qt);
10805 windows_or_buffers_changed = 1; 10805 windows_or_buffers_changed = 44;
10806 redisplay_internal (); 10806 redisplay_internal ();
10807 unbind_to (count, Qnil); 10807 unbind_to (count, Qnil);
10808 } 10808 }
@@ -10821,11 +10821,11 @@ echo_area_display (int update_frame_p)
10821 redisplay displays the minibuffer, so that the cursor will 10821 redisplay displays the minibuffer, so that the cursor will
10822 be replaced with what the minibuffer wants. */ 10822 be replaced with what the minibuffer wants. */
10823 if (cursor_in_echo_area) 10823 if (cursor_in_echo_area)
10824 ++windows_or_buffers_changed; 10824 windows_or_buffers_changed = 45;
10825 } 10825 }
10826 } 10826 }
10827 else if (!EQ (mini_window, selected_window)) 10827 else if (!EQ (mini_window, selected_window))
10828 windows_or_buffers_changed++; 10828 windows_or_buffers_changed = 46;
10829 10829
10830 /* Last displayed message is now the current message. */ 10830 /* Last displayed message is now the current message. */
10831 echo_area_buffer[1] = echo_area_buffer[0]; 10831 echo_area_buffer[1] = echo_area_buffer[0];
@@ -12947,7 +12947,7 @@ redisplay_internal (void)
12947 realized faces, which includes the faces referenced from current 12947 realized faces, which includes the faces referenced from current
12948 matrices. So, we can't reuse current matrices in this case. */ 12948 matrices. So, we can't reuse current matrices in this case. */
12949 if (face_change_count) 12949 if (face_change_count)
12950 ++windows_or_buffers_changed; 12950 windows_or_buffers_changed = 47;
12951 12951
12952 if ((FRAME_TERMCAP_P (sf) || FRAME_MSDOS_P (sf)) 12952 if ((FRAME_TERMCAP_P (sf) || FRAME_MSDOS_P (sf))
12953 && FRAME_TTY (sf)->previous_frame != sf) 12953 && FRAME_TTY (sf)->previous_frame != sf)
@@ -12955,7 +12955,7 @@ redisplay_internal (void)
12955 /* Since frames on a single ASCII terminal share the same 12955 /* Since frames on a single ASCII terminal share the same
12956 display area, displaying a different frame means redisplay 12956 display area, displaying a different frame means redisplay
12957 the whole thing. */ 12957 the whole thing. */
12958 windows_or_buffers_changed++; 12958 windows_or_buffers_changed = 48;
12959 SET_FRAME_GARBAGED (sf); 12959 SET_FRAME_GARBAGED (sf);
12960#ifndef DOS_NT 12960#ifndef DOS_NT
12961 set_tty_color_mode (FRAME_TTY (sf), sf); 12961 set_tty_color_mode (FRAME_TTY (sf), sf);
@@ -13031,7 +13031,7 @@ redisplay_internal (void)
13031 /* If specs for an arrow have changed, do thorough redisplay 13031 /* If specs for an arrow have changed, do thorough redisplay
13032 to ensure we remove any arrow that should no longer exist. */ 13032 to ensure we remove any arrow that should no longer exist. */
13033 if (overlay_arrows_changed_p ()) 13033 if (overlay_arrows_changed_p ())
13034 consider_all_windows_p = windows_or_buffers_changed = 1; 13034 consider_all_windows_p = windows_or_buffers_changed = 49;
13035 13035
13036 /* Normally the message* functions will have already displayed and 13036 /* Normally the message* functions will have already displayed and
13037 updated the echo area, but the frame may have been trashed, or 13037 updated the echo area, but the frame may have been trashed, or
@@ -13064,7 +13064,7 @@ redisplay_internal (void)
13064 { 13064 {
13065 consider_all_windows_p = 1; 13065 consider_all_windows_p = 1;
13066 ++update_mode_lines; 13066 ++update_mode_lines;
13067 ++windows_or_buffers_changed; 13067 windows_or_buffers_changed = 50;
13068 13068
13069 /* If window configuration was changed, frames may have been 13069 /* If window configuration was changed, frames may have been
13070 marked garbaged. Clear them or we will experience 13070 marked garbaged. Clear them or we will experience
@@ -13084,7 +13084,7 @@ redisplay_internal (void)
13084 needs to be rewritten with two variables, consider_all_windows and 13084 needs to be rewritten with two variables, consider_all_windows and
13085 consider_all_frames. */ 13085 consider_all_frames. */
13086 consider_all_windows_p = 1; 13086 consider_all_windows_p = 1;
13087 ++windows_or_buffers_changed; 13087 windows_or_buffers_changed = 51;
13088 ++update_mode_lines; 13088 ++update_mode_lines;
13089 13089
13090 /* If window configuration was changed, frames may have been 13090 /* If window configuration was changed, frames may have been
@@ -13524,7 +13524,7 @@ redisplay_internal (void)
13524 } 13524 }
13525 13525
13526 if (new_count != number_of_visible_frames) 13526 if (new_count != number_of_visible_frames)
13527 windows_or_buffers_changed++; 13527 windows_or_buffers_changed = 52;
13528 } 13528 }
13529 13529
13530 /* Change frame size now if a change is pending. */ 13530 /* Change frame size now if a change is pending. */
diff --git a/src/xfaces.c b/src/xfaces.c
index 30658f9c4a8..de7636e960b 100644
--- a/src/xfaces.c
+++ b/src/xfaces.c
@@ -788,7 +788,7 @@ Optional THOROUGHLY non-nil means try to free unused fonts, too. */)
788{ 788{
789 clear_face_cache (!NILP (thoroughly)); 789 clear_face_cache (!NILP (thoroughly));
790 ++face_change_count; 790 ++face_change_count;
791 ++windows_or_buffers_changed; 791 windows_or_buffers_changed = 53;
792 return Qnil; 792 return Qnil;
793} 793}
794 794
@@ -2637,7 +2637,7 @@ Value is a vector of face attributes. */)
2637 if (NILP (Fget (face, Qface_no_inherit))) 2637 if (NILP (Fget (face, Qface_no_inherit)))
2638 { 2638 {
2639 ++face_change_count; 2639 ++face_change_count;
2640 ++windows_or_buffers_changed; 2640 windows_or_buffers_changed = 54;
2641 } 2641 }
2642 2642
2643 eassert (LFACEP (lface)); 2643 eassert (LFACEP (lface));
@@ -2716,7 +2716,7 @@ The value is TO. */)
2716 if (NILP (Fget (to, Qface_no_inherit))) 2716 if (NILP (Fget (to, Qface_no_inherit)))
2717 { 2717 {
2718 ++face_change_count; 2718 ++face_change_count;
2719 ++windows_or_buffers_changed; 2719 windows_or_buffers_changed = 55;
2720 } 2720 }
2721 2721
2722 return to; 2722 return to;
@@ -3207,7 +3207,7 @@ FRAME 0 means change the face on all frames, and change the default
3207 && NILP (Fequal (old_value, value))) 3207 && NILP (Fequal (old_value, value)))
3208 { 3208 {
3209 ++face_change_count; 3209 ++face_change_count;
3210 ++windows_or_buffers_changed; 3210 windows_or_buffers_changed = 56;
3211 } 3211 }
3212 3212
3213 if (!UNSPECIFIEDP (value) && !IGNORE_DEFFACE_P (value) 3213 if (!UNSPECIFIEDP (value) && !IGNORE_DEFFACE_P (value)
@@ -3221,7 +3221,7 @@ FRAME 0 means change the face on all frames, and change the default
3221 { 3221 {
3222#ifdef HAVE_WINDOW_SYSTEM 3222#ifdef HAVE_WINDOW_SYSTEM
3223 /* Changed font-related attributes of the `default' face are 3223 /* Changed font-related attributes of the `default' face are
3224 reflected in changed `font' frame parameters. */ 3224 reflected in changed `font' frame parameters. */
3225 if (FRAMEP (frame) 3225 if (FRAMEP (frame)
3226 && (prop_index || EQ (attr, QCfont)) 3226 && (prop_index || EQ (attr, QCfont))
3227 && lface_fully_specified_p (XVECTOR (lface)->contents)) 3227 && lface_fully_specified_p (XVECTOR (lface)->contents))
@@ -3380,7 +3380,7 @@ update_face_from_frame_parameter (struct frame *f, Lisp_Object param,
3380 && NILP (Fget (face, Qface_no_inherit))) 3380 && NILP (Fget (face, Qface_no_inherit)))
3381 { 3381 {
3382 ++face_change_count; 3382 ++face_change_count;
3383 ++windows_or_buffers_changed; 3383 windows_or_buffers_changed = 57;
3384 } 3384 }
3385} 3385}
3386 3386
@@ -4273,7 +4273,7 @@ free_realized_faces (struct face_cache *c)
4273 if (WINDOWP (f->root_window)) 4273 if (WINDOWP (f->root_window))
4274 { 4274 {
4275 clear_current_matrices (f); 4275 clear_current_matrices (f);
4276 ++windows_or_buffers_changed; 4276 windows_or_buffers_changed = 58;
4277 } 4277 }
4278 4278
4279 unblock_input (); 4279 unblock_input ();
diff --git a/src/xfns.c b/src/xfns.c
index 695a72a7024..624c16fe0fb 100644
--- a/src/xfns.c
+++ b/src/xfns.c
@@ -959,7 +959,7 @@ x_set_menu_bar_lines (struct frame *f, Lisp_Object value, Lisp_Object oldval)
959 nlines = 0; 959 nlines = 0;
960 960
961 /* Make sure we redisplay all windows in this frame. */ 961 /* Make sure we redisplay all windows in this frame. */
962 windows_or_buffers_changed++; 962 windows_or_buffers_changed = 59;
963 963
964#if defined (USE_X_TOOLKIT) || defined (USE_GTK) 964#if defined (USE_X_TOOLKIT) || defined (USE_GTK)
965 FRAME_MENU_BAR_LINES (f) = 0; 965 FRAME_MENU_BAR_LINES (f) = 0;
@@ -1068,8 +1068,8 @@ x_set_tool_bar_lines (struct frame *f, Lisp_Object value, Lisp_Object oldval)
1068 1068
1069#else /* !USE_GTK */ 1069#else /* !USE_GTK */
1070 1070
1071 /* Make sure we redisplay all windows in this frame. */ 1071 /* Make sure we redisplay all windows in this frame. */
1072 ++windows_or_buffers_changed; 1072 windows_or_buffers_changed = 60;
1073 1073
1074 delta = nlines - FRAME_TOOL_BAR_LINES (f); 1074 delta = nlines - FRAME_TOOL_BAR_LINES (f);
1075 1075