aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGerd Moellmann2001-12-12 13:43:37 +0000
committerGerd Moellmann2001-12-12 13:43:37 +0000
commit201c831a096feecbad341f30d8c7497c466ab11a (patch)
tree9e93dff21501794375c19a8550030796be3d7e65 /src
parentf7ccfc8c711b842cb3d1e3c9780b5f9c039daedd (diff)
downloademacs-201c831a096feecbad341f30d8c7497c466ab11a.tar.gz
emacs-201c831a096feecbad341f30d8c7497c466ab11a.zip
(Frecenter): Simplify computation in the case of window
system frames and ARG < 0; use window_box_height.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog8
-rw-r--r--src/window.c9
2 files changed, 12 insertions, 5 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 2dceefd631e..fc6c8577046 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,11 @@
12001-12-12 Gerd Moellmann <gerd@gnu.org>
2
3 * xdisp.c (move_it_vertically_backward): Change heuristic
4 for the case that we didn't move far enough initially.
5
6 * window.c (Frecenter): Simplify computation in the case of window
7 system frames and ARG < 0; use window_box_height.
8
12001-12-11 Richard M. Stallman <rms@gnu.org> 92001-12-11 Richard M. Stallman <rms@gnu.org>
2 10
3 * Makefile.in, mem-limits.h, dispnew.c, emacs.c, fileio.c: 11 * Makefile.in, mem-limits.h, dispnew.c, emacs.c, fileio.c:
diff --git a/src/window.c b/src/window.c
index 7d0a1eec6cd..6ee3086d616 100644
--- a/src/window.c
+++ b/src/window.c
@@ -4584,18 +4584,17 @@ and redisplay normally--don't erase and redraw the frame. */)
4584 nlines = - XINT (arg) - 1; 4584 nlines = - XINT (arg) - 1;
4585 move_it_by_lines (&it, nlines, 1); 4585 move_it_by_lines (&it, nlines, 1);
4586 4586
4587 y1 = it.current_y - y0; 4587 y1 = line_bottom_y (&it);
4588 h = line_bottom_y (&it) - y1;
4589 4588
4590 /* If we can't move down NLINES lines because we hit 4589 /* If we can't move down NLINES lines because we hit
4591 the end of the buffer, count in some empty lines. */ 4590 the end of the buffer, count in some empty lines. */
4592 if (it.vpos < nlines) 4591 if (it.vpos < nlines)
4593 y1 += (nlines - it.vpos) * CANON_Y_UNIT (it.f); 4592 y1 += (nlines - it.vpos) * CANON_Y_UNIT (it.f);
4594 4593
4595 y0 = it.last_visible_y - y1 - h; 4594 h = window_box_height (w) - (y1 - y0);
4596 4595
4597 start_display (&it, w, pt); 4596 start_display (&it, w, pt);
4598 move_it_vertically (&it, - y0); 4597 move_it_vertically (&it, - h);
4599 charpos = IT_CHARPOS (it); 4598 charpos = IT_CHARPOS (it);
4600 bytepos = IT_BYTEPOS (it); 4599 bytepos = IT_BYTEPOS (it);
4601 } 4600 }