aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGerd Moellmann2001-10-27 08:55:04 +0000
committerGerd Moellmann2001-10-27 08:55:04 +0000
commit798dbe1fc86e34dbf9d5c57c856f186ab4a3eb70 (patch)
tree536f12db459c58453880c3292cd6dbbd05631496 /src
parent62725a9205c155f6fbbaf6f3758e4a2b50072ccc (diff)
downloademacs-798dbe1fc86e34dbf9d5c57c856f186ab4a3eb70.tar.gz
emacs-798dbe1fc86e34dbf9d5c57c856f186ab4a3eb70.zip
(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.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog4
-rw-r--r--src/xdisp.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 23ceb1509ca..c07d5e673e0 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,9 @@
12001-10-27 Gerd Moellmann <gerd@gnu.org> 12001-10-27 Gerd Moellmann <gerd@gnu.org>
2 2
3 * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
4 instead of 1/2 line_height in the heuristic for skipping
5 farther backward when target_y was not reached.
6
3 * sound.c (sound_perror): Unblock SIGIO, turn on atimers. 7 * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
4 Display errno only if non-zero. 8 Display errno only if non-zero.
5 (sound_warning): New function. 9 (sound_warning): New function.
diff --git a/src/xdisp.c b/src/xdisp.c
index a83dd6bd20c..e2b587e08d0 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -5377,7 +5377,7 @@ move_it_vertically_backward (it, dy)
5377 a line height of 13 pixels each, recentering with point 5377 a line height of 13 pixels each, recentering with point
5378 on the bottom line will try to move -39/2 = 19 pixels 5378 on the bottom line will try to move -39/2 = 19 pixels
5379 backward. Try to avoid moving into the first line. */ 5379 backward. Try to avoid moving into the first line. */
5380 && it->current_y - target_y > line_height / 2 5380 && it->current_y - target_y > line_height / 3 * 2
5381 && IT_CHARPOS (*it) > BEGV) 5381 && IT_CHARPOS (*it) > BEGV)
5382 { 5382 {
5383 move_it_vertically (it, target_y - it->current_y); 5383 move_it_vertically (it, target_y - it->current_y);