aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/xdisp.c6
2 files changed, 11 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index c9cf12dc159..df9484ce3de 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12004-04-16 Juanma Barranquero <lektu@terra.es>
2
3 * xdisp.c (try_scrolling): Make sure `scroll-conservatively' is
4 not too large before computing how much to scroll.
5
12004-04-14 Luc Teirlinck <teirllm@auburn.edu> 62004-04-14 Luc Teirlinck <teirllm@auburn.edu>
2 7
3 * fileio.c (Fverify_visited_file_modtime, Fvisited_file_modtime): 8 * fileio.c (Fverify_visited_file_modtime, Fvisited_file_modtime):
diff --git a/src/xdisp.c b/src/xdisp.c
index b1633132214..2cd1d548457 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -10879,6 +10879,12 @@ try_scrolling (window, just_this_one_p, scroll_conservatively,
10879 else 10879 else
10880 this_scroll_margin = 0; 10880 this_scroll_margin = 0;
10881 10881
10882 /* Force scroll_conservatively to have a reasonable value so it doesn't
10883 cause an overflow while computing how much to scroll. */
10884 if (scroll_conservatively)
10885 scroll_conservatively = min (scroll_conservatively,
10886 MOST_POSITIVE_FIXNUM / FRAME_LINE_HEIGHT (f));
10887
10882 /* Compute how much we should try to scroll maximally to bring point 10888 /* Compute how much we should try to scroll maximally to bring point
10883 into view. */ 10889 into view. */
10884 if (scroll_step || scroll_conservatively || temp_scroll_step) 10890 if (scroll_step || scroll_conservatively || temp_scroll_step)