comparison src/xdisp.c @ 11719:9238e21a6f09

(prepare_menu_bars): Clear size-change flag before running size-change functions. (scroll_step, debug_end_pos, line_number_display_limit): Now static.
author Richard M. Stallman <rms@gnu.org>
date Sat, 06 May 1995 08:00:08 +0000
parents d3a8fb1db72f
children d110042c1d95
comparison
equal deleted inserted replaced
11718:e8bb2ca38f6d 11719:9238e21a6f09
123 /* Nonzero means highlight the region even in nonselected windows. */ 123 /* Nonzero means highlight the region even in nonselected windows. */
124 static int highlight_nonselected_windows; 124 static int highlight_nonselected_windows;
125 125
126 /* If cursor motion alone moves point off frame, 126 /* If cursor motion alone moves point off frame,
127 Try scrolling this many lines up or down if that will bring it back. */ 127 Try scrolling this many lines up or down if that will bring it back. */
128 int scroll_step; 128 static int scroll_step;
129 129
130 /* Nonzero if try_window_id has made blank lines at window bottom 130 /* Nonzero if try_window_id has made blank lines at window bottom
131 since the last redisplay that paused */ 131 since the last redisplay that paused */
132 static int blank_end_of_window; 132 static int blank_end_of_window;
133 133
141 Set one to -1 first to determine whether point was found afterwards. */ 141 Set one to -1 first to determine whether point was found afterwards. */
142 142
143 static int cursor_vpos; 143 static int cursor_vpos;
144 static int cursor_hpos; 144 static int cursor_hpos;
145 145
146 int debug_end_pos; 146 static int debug_end_pos;
147 147
148 /* Nonzero means display mode line highlighted */ 148 /* Nonzero means display mode line highlighted */
149 int mode_line_inverse_video; 149 int mode_line_inverse_video;
150 150
151 static int message_log_check_duplicate (); 151 static int message_log_check_duplicate ();
210 /* Nonzero after display_mode_line if %l was used 210 /* Nonzero after display_mode_line if %l was used
211 and it displayed a line number. */ 211 and it displayed a line number. */
212 int line_number_displayed; 212 int line_number_displayed;
213 213
214 /* Maximum buffer size for which to display line numbers. */ 214 /* Maximum buffer size for which to display line numbers. */
215 int line_number_display_limit; 215 static int line_number_display_limit;
216 216
217 /* Number of lines to keep in the message log buffer. 217 /* Number of lines to keep in the message log buffer.
218 t means infinite. nil means don't log at all. */ 218 t means infinite. nil means don't log at all. */
219 Lisp_Object Vmessage_log_max; 219 Lisp_Object Vmessage_log_max;
220 220
673 /* If a window on this frame changed size, 673 /* If a window on this frame changed size,
674 report that to the user and clear the size-change flag. */ 674 report that to the user and clear the size-change flag. */
675 if (FRAME_WINDOW_SIZES_CHANGED (XFRAME (frame))) 675 if (FRAME_WINDOW_SIZES_CHANGED (XFRAME (frame)))
676 { 676 {
677 Lisp_Object functions; 677 Lisp_Object functions;
678 /* Clear flag first in case we get error below. */
679 FRAME_WINDOW_SIZES_CHANGED (XFRAME (frame)) = 0;
678 functions = Vwindow_size_change_functions; 680 functions = Vwindow_size_change_functions;
679 GCPRO2 (tail, functions); 681 GCPRO2 (tail, functions);
680 while (CONSP (functions)) 682 while (CONSP (functions))
681 { 683 {
682 call1 (XCONS (functions)->car, frame); 684 call1 (XCONS (functions)->car, frame);
683 functions = XCONS (functions)->cdr; 685 functions = XCONS (functions)->cdr;
684 } 686 }
685 UNGCPRO; 687 UNGCPRO;
686 FRAME_WINDOW_SIZES_CHANGED (XFRAME (frame)) = 0;
687 } 688 }
688 GCPRO1 (tail); 689 GCPRO1 (tail);
689 update_menu_bar (XFRAME (frame)); 690 update_menu_bar (XFRAME (frame));
690 UNGCPRO; 691 UNGCPRO;
691 } 692 }
1549 scroll_step, width, hscroll, window); 1550 scroll_step, width, hscroll, window);
1550 if (pos.vpos >= height) 1551 if (pos.vpos >= height)
1551 goto scroll_fail; 1552 goto scroll_fail;
1552 } 1553 }
1553 1554
1554 pos = *vmotion (startp, PT < startp ? - scroll_step : scroll_step, 1555 pos = *vmotion (startp,
1556 (PT < startp ? - scroll_step : scroll_step),
1555 width, hscroll, window); 1557 width, hscroll, window);
1556 1558
1557 if (PT >= pos.bufpos) 1559 if (PT >= pos.bufpos)
1558 { 1560 {
1559 try_window (window, pos.bufpos); 1561 try_window (window, pos.bufpos);