Mercurial > emacs
comparison src/window.c @ 5990:936d4a988148
(unshow_buffer): Unconditionally set last_window_start.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Fri, 18 Feb 1994 06:10:23 +0000 |
parents | aaf6fe5d0a54 |
children | 19eaf70457d4 |
comparison
equal
deleted
inserted
replaced
5989:0b529dfd88c3 | 5990:936d4a988148 |
---|---|
615 Lisp_Object buf = w->buffer; | 615 Lisp_Object buf = w->buffer; |
616 | 616 |
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 |
627 is actually stored in that buffer, and the window's pointm isn't used. | 636 is actually stored in that buffer, and the window's pointm isn't used. |
628 So don't clobber point in that buffer. */ | 637 So don't clobber point in that buffer. */ |