aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLuc Teirlinck2006-03-09 03:43:23 +0000
committerLuc Teirlinck2006-03-09 03:43:23 +0000
commit66d43aea54f1d7ad2f489a99112856a3ad108bcc (patch)
treeaa170d39fb278a476fa4a8ad3590d4b59c023824 /src
parent629f023d15cb2c287fbb30fb4896bddf51c5eb9f (diff)
downloademacs-66d43aea54f1d7ad2f489a99112856a3ad108bcc.tar.gz
emacs-66d43aea54f1d7ad2f489a99112856a3ad108bcc.zip
Declare preserve_y as a static global variable.
(window_scroll_pixel_based): No longer declare preserve_y; it is global now. (syms_of_window): set preserve_y to -1.
Diffstat (limited to 'src')
-rw-r--r--src/window.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/window.c b/src/window.c
index cd7c1e6a625..cc453941304 100644
--- a/src/window.c
+++ b/src/window.c
@@ -215,6 +215,10 @@ Lisp_Object Vscroll_preserve_screen_position;
215 215
216int window_deletion_count; 216int window_deletion_count;
217 217
218/* Used by the function window_scroll_pixel_based */
219
220static int preserve_y;
221
218#if 0 /* This isn't used anywhere. */ 222#if 0 /* This isn't used anywhere. */
219/* Nonzero means we can split a frame even if it is "unsplittable". */ 223/* Nonzero means we can split a frame even if it is "unsplittable". */
220static int inhibit_frame_unsplittable; 224static int inhibit_frame_unsplittable;
@@ -4724,7 +4728,6 @@ window_scroll_pixel_based (window, n, whole, noerror)
4724 int this_scroll_margin; 4728 int this_scroll_margin;
4725 /* True if we fiddled the window vscroll field without really scrolling. */ 4729 /* True if we fiddled the window vscroll field without really scrolling. */
4726 int vscrolled = 0; 4730 int vscrolled = 0;
4727 static int preserve_y = -1;
4728 4731
4729 SET_TEXT_POS_FROM_MARKER (start, w->start); 4732 SET_TEXT_POS_FROM_MARKER (start, w->start);
4730 4733
@@ -7022,6 +7025,8 @@ syms_of_window ()
7022 minibuf_selected_window = Qnil; 7025 minibuf_selected_window = Qnil;
7023 staticpro (&minibuf_selected_window); 7026 staticpro (&minibuf_selected_window);
7024 7027
7028 preserve_y = -1;
7029
7025 DEFVAR_LISP ("temp-buffer-show-function", &Vtemp_buffer_show_function, 7030 DEFVAR_LISP ("temp-buffer-show-function", &Vtemp_buffer_show_function,
7026 doc: /* Non-nil means call as function to display a help buffer. 7031 doc: /* Non-nil means call as function to display a help buffer.
7027The function is called with one argument, the buffer to be displayed. 7032The function is called with one argument, the buffer to be displayed.