From 66d43aea54f1d7ad2f489a99112856a3ad108bcc Mon Sep 17 00:00:00 2001 From: Luc Teirlinck Date: Thu, 9 Mar 2006 03:43:23 +0000 Subject: [PATCH] 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. --- src/window.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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; int window_deletion_count; +/* Used by the function window_scroll_pixel_based */ + +static int preserve_y; + #if 0 /* This isn't used anywhere. */ /* Nonzero means we can split a frame even if it is "unsplittable". */ static int inhibit_frame_unsplittable; @@ -4724,7 +4728,6 @@ window_scroll_pixel_based (window, n, whole, noerror) int this_scroll_margin; /* True if we fiddled the window vscroll field without really scrolling. */ int vscrolled = 0; - static int preserve_y = -1; SET_TEXT_POS_FROM_MARKER (start, w->start); @@ -7022,6 +7025,8 @@ syms_of_window () minibuf_selected_window = Qnil; staticpro (&minibuf_selected_window); + preserve_y = -1; + DEFVAR_LISP ("temp-buffer-show-function", &Vtemp_buffer_show_function, doc: /* Non-nil means call as function to display a help buffer. The function is called with one argument, the buffer to be displayed. -- 2.39.2