From: Gerd Moellmann Date: Sat, 27 Oct 2001 08:56:24 +0000 (+0000) Subject: (move_it_vertically_backward): Use 2/3 line_height X-Git-Tag: emacs-21.2~442 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=83edafbdcf08c53a003695a1e0d1a54f84567e27;p=emacs.git (move_it_vertically_backward): Use 2/3 line_height instead of 1/2 line_height in the heuristic for skipping farther backward when target_y was not reached. --- diff --git a/src/ChangeLog b/src/ChangeLog index ccc5664ac52..4e0b17ee641 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,9 @@ 2001-10-27 Gerd Moellmann + * xdisp.c (move_it_vertically_backward): Use 2/3 line_height + instead of 1/2 line_height in the heuristic for skipping + farther backward when target_y was not reached. + * sound.c (sound_perror): Unblock SIGIO, turn on atimers. Display errno only if non-zero. (sound_warning): New function. diff --git a/src/xdisp.c b/src/xdisp.c index 6872eeac1a6..007b87c6c2d 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -5385,7 +5385,7 @@ move_it_vertically_backward (it, dy) a line height of 13 pixels each, recentering with point on the bottom line will try to move -39/2 = 19 pixels backward. Try to avoid moving into the first line. */ - && it->current_y - target_y > line_height / 2 + && it->current_y - target_y > line_height / 3 * 2 && IT_CHARPOS (*it) > BEGV) { move_it_vertically (it, target_y - it->current_y);