diff options
| author | Richard M. Stallman | 2002-06-08 18:33:56 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2002-06-08 18:33:56 +0000 |
| commit | 515a9a0f466acd4cd36c5a960d8525721e65c9fc (patch) | |
| tree | 5dbf6bebed1d0d2f6e5f2a564c40d7dfae18019e | |
| parent | 9583b2bb2709c033d4e2a76d702094fc79b560a4 (diff) | |
| download | emacs-515a9a0f466acd4cd36c5a960d8525721e65c9fc.tar.gz emacs-515a9a0f466acd4cd36c5a960d8525721e65c9fc.zip | |
Explain why set-window-hscroll may appear to fail to work.
| -rw-r--r-- | lispref/windows.texi | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lispref/windows.texi b/lispref/windows.texi index 88949cf8458..00404f8c96e 100644 --- a/lispref/windows.texi +++ b/lispref/windows.texi | |||
| @@ -1612,6 +1612,14 @@ This function sets the number of columns from the left margin that | |||
| 1612 | @var{columns} should be zero or positive; if not, it is taken as zero. | 1612 | @var{columns} should be zero or positive; if not, it is taken as zero. |
| 1613 | Fractional values of @var{columns} are not supported at present. | 1613 | Fractional values of @var{columns} are not supported at present. |
| 1614 | 1614 | ||
| 1615 | Note that @code{set-window-hscroll} may appear not to work if you test | ||
| 1616 | it by evaluating a call with @kbd{M-:} in a simple way. What happens | ||
| 1617 | is that the function sets the horizontal scroll value and returns, but | ||
| 1618 | then redisplay adjusts the horizontal scrolling to make point visible, | ||
| 1619 | and this overrides what the function did. You can observe the | ||
| 1620 | function's effect if you call it while point is sufficiently far from | ||
| 1621 | the left margin that it will remain visible. | ||
| 1622 | |||
| 1615 | The value returned is @var{columns}. | 1623 | The value returned is @var{columns}. |
| 1616 | 1624 | ||
| 1617 | @example | 1625 | @example |