Fix bug #6671 with point position in the window when scrolling far away.
commit06b6bbb578cae9ebc00ffd6d4a2c7dc4995588bf
authorEli Zaretskii <eliz@gnu.org>
Sat, 26 Mar 2011 18:31:36 +0000 (26 20:31 +0200)
committerEli Zaretskii <eliz@gnu.org>
Sat, 26 Mar 2011 18:31:36 +0000 (26 20:31 +0200)
treeb612992a6c260719e0e7e456880da008772c1be4
parent5d9bd9764f0c3dc7592c0232420e4bbc1e366b7f
Fix bug #6671 with point position in the window when scrolling far away.

 src/xdisp.c (redisplay_window): Don't check buffer's clip_changed
 flag as a prerequisite for invoking try_scrolling.
 (try_scrolling): Limit scrolling to 100 screen lines.
 (SCROLL_LIMIT): New macro.
 (try_scrolling): Use it when setting scroll_limit.
 (redisplay_window): Even when falling back on "recentering",
 position point in the window according to scroll-conservatively,
 scroll-margin, and scroll-*-aggressively variables.
src/ChangeLog
src/xdisp.c