From 76712f0febc5403eea38fe73cff199e9e6aba310 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Wed, 31 May 2017 19:15:40 +0300 Subject: [PATCH] Document current-line hscrolling in ELisp manual * doc/lispref/windows.texi (Horizontal Scrolling): Document the new mode of auto-hscrolling only the current line. --- doc/lispref/windows.texi | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/doc/lispref/windows.texi b/doc/lispref/windows.texi index 3a9257e05af..d9b4b743a3b 100644 --- a/doc/lispref/windows.texi +++ b/doc/lispref/windows.texi @@ -4249,6 +4249,13 @@ scrolling value explicitly. The value you specify serves as a lower bound for automatic scrolling, i.e., automatic scrolling will not scroll a window to a column less than the specified one. + The default value of @code{auto-hscroll-mode} is @code{t}; setting +it to @code{current-line} activates a variant of automatic horizontal +scrolling whereby only the line showing the cursor is horizontally +scrolled to make point visible, the rest of the window is left either +unscrolled, or at the minimum scroll amount set by @code{scroll-left} +and @code{scroll-right}, see below. + @deffn Command scroll-left &optional count set-minimum This function scrolls the selected window @var{count} columns to the left (or to the right if @var{count} is negative). The default -- 2.39.2