if (XBUFFER (buf) != XMARKER (w->pointm)->buffer)
abort ();
+ if (w == XWINDOW (XBUFFER (buf)->last_selected_window))
+ XBUFFER (buf)->last_selected_window = Qnil;
+
#if 0
if (w == XWINDOW (selected_window)
|| ! EQ (buf, XWINDOW (selected_window)->buffer))
}
w->buffer = buffer;
+
+ if (EQ (window, selected_window))
+ XBUFFER (w->buffer)->last_selected_window = window;
+
XSETFASTINT (w->window_end_pos, 0);
w->window_end_valid = Qnil;
XSETFASTINT (w->hscroll, 0);
record_buffer (w->buffer);
Fset_buffer (w->buffer);
+ XBUFFER (w->buffer)->last_selected_window = window;
+
/* Go to the point recorded in the window.
This is important when the buffer is in more
than one window. It also matters when
w->height = w->buffer; /* See Fset_window_configuration for excuse. */
+ if (!NILP (w->buffer))
+ unshow_buffer (w);
+
/* We set all three of these fields to nil, to make sure that we can
distinguish this dead window from any live window. Live leaf
windows will have buffer set, and combination windows will have