diff options
| author | Gerd Moellmann | 2001-01-03 13:50:01 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2001-01-03 13:50:01 +0000 |
| commit | 2f3cad6ccb52ff46b1db4b8122b72395b44dea28 (patch) | |
| tree | fadc6efb1987b870a18bda602e1117f38baec33e /src | |
| parent | 47fc2c1093515235c89aed3bf22dd55d24f6caaf (diff) | |
| download | emacs-2f3cad6ccb52ff46b1db4b8122b72395b44dea28.tar.gz emacs-2f3cad6ccb52ff46b1db4b8122b72395b44dea28.zip | |
(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.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 8 | ||||
| -rw-r--r-- | src/window.c | 2 |
2 files changed, 10 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index c167e3721fe..b47b5c69512 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,13 @@ | |||
| 1 | 2001-01-03 Gerd Moellmann <gerd@gnu.org> | 1 | 2001-01-03 Gerd Moellmann <gerd@gnu.org> |
| 2 | 2 | ||
| 3 | * window.c (Frecenter): When changing the window start, set the | ||
| 4 | window's window_end_valid to nil. | ||
| 5 | (Fwindow_end): Fix window-end computation when UPDATE is non-nil. | ||
| 6 | |||
| 7 | * dispextern.h (move_it_past_eol): Add prototype. | ||
| 8 | |||
| 9 | * xdisp.c (move_it_past_eol): New function. | ||
| 10 | |||
| 3 | * window.c (Fwindow_end): Doc fix. | 11 | * window.c (Fwindow_end): Doc fix. |
| 4 | 12 | ||
| 5 | 2001-01-03 Dave Love <fx@gnu.org> | 13 | 2001-01-03 Dave Love <fx@gnu.org> |
diff --git a/src/window.c b/src/window.c index ac12c1ee804..5d779026bad 100644 --- a/src/window.c +++ b/src/window.c | |||
| @@ -908,6 +908,7 @@ if it isn't already recorded.") | |||
| 908 | cope with variable-height lines. */ | 908 | cope with variable-height lines. */ |
| 909 | start_display (&it, w, startp); | 909 | start_display (&it, w, startp); |
| 910 | move_it_vertically (&it, window_box_height (w)); | 910 | move_it_vertically (&it, window_box_height (w)); |
| 911 | move_it_past_eol (&it); | ||
| 911 | value = make_number (IT_CHARPOS (it)); | 912 | value = make_number (IT_CHARPOS (it)); |
| 912 | } | 913 | } |
| 913 | else | 914 | else |
| @@ -4555,6 +4556,7 @@ and redisplay normally--don't erase and redraw the frame.") | |||
| 4555 | 4556 | ||
| 4556 | /* Set the new window start. */ | 4557 | /* Set the new window start. */ |
| 4557 | set_marker_both (w->start, w->buffer, charpos, bytepos); | 4558 | set_marker_both (w->start, w->buffer, charpos, bytepos); |
| 4559 | w->window_end_valid = Qnil; | ||
| 4558 | w->force_start = Qt; | 4560 | w->force_start = Qt; |
| 4559 | if (bytepos == BEGV_BYTE || FETCH_BYTE (bytepos - 1) == '\n') | 4561 | if (bytepos == BEGV_BYTE || FETCH_BYTE (bytepos - 1) == '\n') |
| 4560 | w->start_at_line_beg = Qt; | 4562 | w->start_at_line_beg = Qt; |