Mercurial > emacs
changeset 45679:85f61bf6ce1d
Explain why set-window-hscroll may appear to fail to work.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sat, 08 Jun 2002 18:33:56 +0000 |
parents | 19d02f244e7d |
children | c9e70e34b426 |
files | lispref/windows.texi |
diffstat | 1 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/lispref/windows.texi Sat Jun 08 18:30:02 2002 +0000 +++ b/lispref/windows.texi Sat Jun 08 18:33:56 2002 +0000 @@ -1612,6 +1612,14 @@ @var{columns} should be zero or positive; if not, it is taken as zero. Fractional values of @var{columns} are not supported at present. +Note that @code{set-window-hscroll} may appear not to work if you test +it by evaluating a call with @kbd{M-:} in a simple way. What happens +is that the function sets the horizontal scroll value and returns, but +then redisplay adjusts the horizontal scrolling to make point visible, +and this overrides what the function did. You can observe the +function's effect if you call it while point is sufficiently far from +the left margin that it will remain visible. + The value returned is @var{columns}. @example