comparison src/window.c @ 69342:12e65aa88734

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.
author Luc Teirlinck <teirllm@auburn.edu>
date Thu, 09 Mar 2006 03:43:23 +0000
parents b9ad41f39bf6
children aa89c5390b12 414faf8dce4e a7364c1a561e
comparison
equal deleted inserted replaced
69341:c82e57732b5b 69342:12e65aa88734
212 Lisp_Object Vscroll_preserve_screen_position; 212 Lisp_Object Vscroll_preserve_screen_position;
213 213
214 /* Incremented by 1 whenever a window is deleted. */ 214 /* Incremented by 1 whenever a window is deleted. */
215 215
216 int window_deletion_count; 216 int window_deletion_count;
217
218 /* Used by the function window_scroll_pixel_based */
219
220 static int preserve_y;
217 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". */
220 static int inhibit_frame_unsplittable; 224 static int inhibit_frame_unsplittable;
221 #endif /* 0 */ 225 #endif /* 0 */
4722 struct text_pos start; 4726 struct text_pos start;
4723 Lisp_Object tem; 4727 Lisp_Object tem;
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
4731 /* If PT is not visible in WINDOW, move back one half of 4734 /* If PT is not visible in WINDOW, move back one half of
4732 the screen. Allow PT to be partially visible, otherwise 4735 the screen. Allow PT to be partially visible, otherwise
7019 7022
7020 staticpro (&Vwindow_list); 7023 staticpro (&Vwindow_list);
7021 7024
7022 minibuf_selected_window = Qnil; 7025 minibuf_selected_window = Qnil;
7023 staticpro (&minibuf_selected_window); 7026 staticpro (&minibuf_selected_window);
7027
7028 preserve_y = -1;
7024 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.
7027 The function is called with one argument, the buffer to be displayed. 7032 The function is called with one argument, the buffer to be displayed.
7028 Used by `with-output-to-temp-buffer'. 7033 Used by `with-output-to-temp-buffer'.