diff options
| author | Juanma Barranquero | 2004-04-16 19:33:45 +0000 |
|---|---|---|
| committer | Juanma Barranquero | 2004-04-16 19:33:45 +0000 |
| commit | 75c5501b44db3d78af88972788ae77c45c4c9404 (patch) | |
| tree | e03e41e3b2f99cc8138fd2c3a43f56edbfffa5f6 /src | |
| parent | 4810d170c92bac4677d26abcaa3573b2224797bd (diff) | |
| download | emacs-75c5501b44db3d78af88972788ae77c45c4c9404.tar.gz emacs-75c5501b44db3d78af88972788ae77c45c4c9404.zip | |
(try_scrolling): Make sure `scroll-conservatively' is not too large before
computing how much to scroll.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/xdisp.c | 6 |
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 @@ | |||
| 1 | 2004-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 | |||
| 1 | 2004-04-14 Luc Teirlinck <teirllm@auburn.edu> | 6 | 2004-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) |