aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii2011-03-30 22:59:42 +0200
committerEli Zaretskii2011-03-30 22:59:42 +0200
commit09725d2628e9b8a796d128d24e7255a57c2424f3 (patch)
tree795b8a5d289a6c13e8d1cc115b8713ee031f03da /src
parent492001e973aa9cbd43f213d12b9ea2717b306b9b (diff)
downloademacs-09725d2628e9b8a796d128d24e7255a57c2424f3.tar.gz
emacs-09725d2628e9b8a796d128d24e7255a57c2424f3.zip
Documentation parts of the scroll fix.
src/xdisp.c (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 'src')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/xdisp.c9
2 files changed, 13 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index dda98bc73a7..6e9a169e8a8 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12011-03-30 Eli Zaretskii <eliz@gnu.org>
2
3 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Document the
4 threshold of 100 lines for never-recentering scrolling.
5
12011-03-29 Eli Zaretskii <eliz@gnu.org> 62011-03-29 Eli Zaretskii <eliz@gnu.org>
2 7
3 * xdisp.c (try_scrolling): When scrolling down aggressively, 8 * xdisp.c (try_scrolling): When scrolling down aggressively,
diff --git a/src/xdisp.c b/src/xdisp.c
index 7983c118134..9e331739cd9 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -13003,7 +13003,10 @@ enum
13003 SCROLLING_NEED_LARGER_MATRICES 13003 SCROLLING_NEED_LARGER_MATRICES
13004}; 13004};
13005 13005
13006/* If scroll-conservatively is more than this, never recenter. */ 13006/* If scroll-conservatively is more than this, never recenter.
13007
13008 If you change this, don't forget to update the doc string of
13009 `scroll-conservatively' and the Emacs manual. */
13007#define SCROLL_LIMIT 100 13010#define SCROLL_LIMIT 100
13008 13011
13009static int 13012static int
@@ -26605,6 +26608,10 @@ If point moves off-screen, redisplay will scroll by up to
26605onto the screen again. If that cannot be done, then redisplay 26608onto the screen again. If that cannot be done, then redisplay
26606recenters point as usual. 26609recenters point as usual.
26607 26610
26611If the value is greater than 100, redisplay will never recenter point,
26612but will always scroll just enough text to bring point into view, even
26613if you move far away.
26614
26608A value of zero means always recenter point if it moves off screen. */); 26615A value of zero means always recenter point if it moves off screen. */);
26609 scroll_conservatively = 0; 26616 scroll_conservatively = 0;
26610 26617