aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1995-05-06 08:00:08 +0000
committerRichard M. Stallman1995-05-06 08:00:08 +0000
commit14510fee47e539a6a95ec61ab3c7ef9f7f3b82d8 (patch)
tree2e66d71570f8a4b5af6cdf28f4e4a89ee95a8991 /src
parent27a3a829604086551f351712c848ec2d489a1ecb (diff)
downloademacs-14510fee47e539a6a95ec61ab3c7ef9f7f3b82d8.tar.gz
emacs-14510fee47e539a6a95ec61ab3c7ef9f7f3b82d8.zip
(prepare_menu_bars): Clear size-change flag before running
size-change functions. (scroll_step, debug_end_pos, line_number_display_limit): Now static.
Diffstat (limited to 'src')
-rw-r--r--src/xdisp.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/xdisp.c b/src/xdisp.c
index 0d25c7f5155..3e25cdd35db 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -125,7 +125,7 @@ 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. */
128int scroll_step; 128static 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 */
@@ -143,7 +143,7 @@ int buffer_shared;
143static int cursor_vpos; 143static int cursor_vpos;
144static int cursor_hpos; 144static int cursor_hpos;
145 145
146int debug_end_pos; 146static int debug_end_pos;
147 147
148/* Nonzero means display mode line highlighted */ 148/* Nonzero means display mode line highlighted */
149int mode_line_inverse_video; 149int mode_line_inverse_video;
@@ -212,7 +212,7 @@ int windows_or_buffers_changed;
212int line_number_displayed; 212int 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. */
215int line_number_display_limit; 215static 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. */
@@ -675,6 +675,8 @@ prepare_menu_bars ()
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))
@@ -683,7 +685,6 @@ prepare_menu_bars ()
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));
@@ -1551,7 +1552,8 @@ redisplay_window (window, just_this_one)
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)