aboutsummaryrefslogtreecommitdiffstats
path: root/src/window.c
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/window.c
parentfeca4e2db9d9dd539b09da9c19f49865952b184d (diff)
downloademacs-94ae2ad44cfd711c836e0fbd86b9e133724482d5.tar.gz
emacs-94ae2ad44cfd711c836e0fbd86b9e133724482d5.zip
*.[chm]: Number every assignment to windows_or_buffers_changed.
Diffstat (limited to 'src/window.c')
-rw-r--r--src/window.c34
1 files changed, 17 insertions, 17 deletions
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