diff options
| author | Eli Zaretskii <eliz@gnu.org> | 2011-03-31 21:12:30 +0200 | 
|---|---|---|
| committer | Eli Zaretskii <eliz@gnu.org> | 2011-03-31 21:12:30 +0200 | 
| commit | 63696a737c9c28f203e1e4f8c73f8a765486543f (patch) | |
| tree | 52953c1f938dc657c5bc4023df7efcb6f58721b5 /lisp/emacs-lisp/pcase.el | |
| parent | c82b2579f0d0abc7cfe75f9f29bc2c7010473878 (diff) | |
| parent | 09725d2628e9b8a796d128d24e7255a57c2424f3 (diff) | |
| download | emacs-63696a737c9c28f203e1e4f8c73f8a765486543f.tar.gz | |
Fix bug #6671 with recentering and other scrolling problems.
 src/xdisp.c (SCROLL_LIMIT): New macro.
 (try_scrolling): Use it when setting scroll_limit.  Limit
 scrolling to 100 screen lines.
 (redisplay_window): Even when falling back on "recentering",
 position point in the window according to scroll-conservatively,
 scroll-margin, and scroll-*-aggressively variables.
 (try_scrolling): When point is above the window, allow searching
 as far as scroll_max, or one screenful, to compute vertical
 distance from PT to the scroll margin position.  This prevents
 try_scrolling from unnecessarily failing when
 scroll-conservatively is set to a value slightly larger than the
 window height.  Clean up the case of PT below the margin at bottom
 of window: scroll_max can no longer be INT_MAX.  When aggressive
 scrolling is in use, don't let point enter the opposite scroll
 margin as result of the scroll.
 (syms_of_xdisp) <scroll-conservatively>: Document the
 threshold of 100 lines for never-recentering scrolling.
 doc/emacs/display.texi (Auto Scrolling): Document the limit of 100 lines
 for never-recentering scrolling with `scroll-conservatively'.
Diffstat (limited to 'lisp/emacs-lisp/pcase.el')
0 files changed, 0 insertions, 0 deletions
