aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1994-02-18 06:10:23 +0000
committerRichard M. Stallman1994-02-18 06:10:23 +0000
commit573f41aba93ea9357c6d3dc0a48c74e9a8aee880 (patch)
tree99ab7b991da6a221dd27c168b61489b5fe33028c
parent47ca02a62cf7ba47156410b785675febe0a1e18f (diff)
downloademacs-573f41aba93ea9357c6d3dc0a48c74e9a8aee880.tar.gz
emacs-573f41aba93ea9357c6d3dc0a48c74e9a8aee880.zip
(unshow_buffer): Unconditionally set last_window_start.
-rw-r--r--src/window.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/window.c b/src/window.c
index bee5e9aae98..f8cdd1a207a 100644
--- a/src/window.c
+++ b/src/window.c
@@ -617,10 +617,19 @@ unshow_buffer (w)
617 if (XBUFFER (buf) != XMARKER (w->pointm)->buffer) 617 if (XBUFFER (buf) != XMARKER (w->pointm)->buffer)
618 abort (); 618 abort ();
619 619
620#if 0
620 if (w == XWINDOW (selected_window) 621 if (w == XWINDOW (selected_window)
621 || ! EQ (buf, XWINDOW (selected_window)->buffer)) 622 || ! EQ (buf, XWINDOW (selected_window)->buffer))
622 /* Do this except when the selected window's buffer 623 /* Do this except when the selected window's buffer
623 is being removed from some other window. */ 624 is being removed from some other window. */
625#endif
626 /* last_window_start records the start position that this buffer
627 had in the last window to be disconnected from it.
628 Now that this statement is unconditional,
629 it is possible for the buffer to be displayed in the
630 selected window, while last_window_start reflects another
631 window which was recently showing the same buffer.
632 Some people might say that might be a good thing. Let's see. */
624 XBUFFER (buf)->last_window_start = marker_position (w->start); 633 XBUFFER (buf)->last_window_start = marker_position (w->start);
625 634
626 /* Point in the selected window's buffer 635 /* Point in the selected window's buffer