]> git.eshelyaron.com Git - emacs.git/commitdiff
(Frecenter): When changing the window start, set the
authorGerd Moellmann <gerd@gnu.org>
Wed, 3 Jan 2001 13:50:01 +0000 (13:50 +0000)
committerGerd Moellmann <gerd@gnu.org>
Wed, 3 Jan 2001 13:50:01 +0000 (13:50 +0000)
window's window_end_valid to nil.
(Fwindow_end): Fix window-end computation when UPDATE is non-nil.

src/ChangeLog
src/window.c

index c167e3721fedf365cd7b9d8f182c8243cb7e467b..b47b5c695122af7144a7431f44a3eb98560c846e 100644 (file)
@@ -1,5 +1,13 @@
 2001-01-03  Gerd Moellmann  <gerd@gnu.org>
 
+       * window.c (Frecenter): When changing the window start, set the
+       window's window_end_valid to nil.
+       (Fwindow_end): Fix window-end computation when UPDATE is non-nil.
+
+       * dispextern.h (move_it_past_eol): Add prototype.
+
+       * xdisp.c (move_it_past_eol): New function.
+
        * window.c (Fwindow_end): Doc fix.
 
 2001-01-03  Dave Love  <fx@gnu.org>
index ac12c1ee8046665524d23df536c8aa447ec661e2..5d779026bad78728fc0acb8d489c02d5f55eac0d 100644 (file)
@@ -908,6 +908,7 @@ if it isn't already recorded.")
         cope with variable-height lines.  */
       start_display (&it, w, startp);
       move_it_vertically (&it, window_box_height (w));
+      move_it_past_eol (&it);
       value = make_number (IT_CHARPOS (it));
     }
   else
@@ -4555,6 +4556,7 @@ and redisplay normally--don't erase and redraw the frame.")
 
   /* Set the new window start.  */
   set_marker_both (w->start, w->buffer, charpos, bytepos);
+  w->window_end_valid = Qnil;
   w->force_start = Qt;
   if (bytepos == BEGV_BYTE || FETCH_BYTE (bytepos - 1) == '\n')
     w->start_at_line_beg = Qt;