(Fdelete_other_windows): Don't call Frecenter;
authorRichard M. Stallman <rms@gnu.org>
Fri, 18 Feb 1994 01:12:10 +0000 (01:12 +0000)
committerRichard M. Stallman <rms@gnu.org>
Fri, 18 Feb 1994 01:12:10 +0000 (01:12 +0000)
do it by hand and avoid setting w->force_start.

src/window.c

index 21ebafd..bee5e9a 100644 (file)
@@ -1342,7 +1342,10 @@ value is reasonable when this function is called.")
   Fset_buffer (w->buffer);
   opoint = point;
   SET_PT (marker_position (w->start));
-  Frecenter (make_number (top - FRAME_MENU_BAR_LINES (XFRAME (WINDOW_FRAME (w)))));
+  /* Like Frecenter but avoid setting w->force_start.  */
+  Fvertical_motion (make_number (- (top - FRAME_MENU_BAR_LINES (XFRAME (WINDOW_FRAME (w))))));
+  Fset_marker (w->start, make_number (PT), w->buffer);
+  w->start_at_line_beg = Fbolp ();
 
   SET_PT (opoint);
   set_buffer_internal (obuf);