summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1994-02-18 06:10:23 +0000
committerRichard M. Stallman <rms@gnu.org>1994-02-18 06:10:23 +0000
commit573f41aba93ea9357c6d3dc0a48c74e9a8aee880 (patch)
tree99ab7b991da6a221dd27c168b61489b5fe33028c /src
parent47ca02a62cf7ba47156410b785675febe0a1e18f (diff)
downloademacs-573f41aba93ea9357c6d3dc0a48c74e9a8aee880.tar.gz
(unshow_buffer): Unconditionally set last_window_start.
Diffstat (limited to 'src')
-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)
if (XBUFFER (buf) != XMARKER (w->pointm)->buffer)
abort ();
+#if 0
if (w == XWINDOW (selected_window)
|| ! EQ (buf, XWINDOW (selected_window)->buffer))
/* Do this except when the selected window's buffer
is being removed from some other window. */
+#endif
+ /* last_window_start records the start position that this buffer
+ had in the last window to be disconnected from it.
+ Now that this statement is unconditional,
+ it is possible for the buffer to be displayed in the
+ selected window, while last_window_start reflects another
+ window which was recently showing the same buffer.
+ Some people might say that might be a good thing. Let's see. */
XBUFFER (buf)->last_window_start = marker_position (w->start);
/* Point in the selected window's buffer