1216 |
@defun set-window-point window position |
@defun set-window-point window position |
1217 |
This function positions point in @var{window} at position |
This function positions point in @var{window} at position |
1218 |
@var{position} in @var{window}'s buffer. It returns @var{position}. |
@var{position} in @var{window}'s buffer. It returns @var{position}. |
1219 |
|
|
1220 |
|
If @var{window} is selected, and its buffer is current, |
1221 |
|
this simply does @code{goto-char}. |
1222 |
@end defun |
@end defun |
1223 |
|
|
1224 |
@node Window Start |
@node Window Start |
1705 |
bound for automatic scrolling, i.e. automatic scrolling will not |
bound for automatic scrolling, i.e. automatic scrolling will not |
1706 |
scroll a window to a column less than the specified one. |
scroll a window to a column less than the specified one. |
1707 |
|
|
1708 |
@deffn Command scroll-left &optional count |
@deffn Command scroll-left &optional count set-minimum |
1709 |
This function scrolls the selected window @var{count} columns to the |
This function scrolls the selected window @var{count} columns to the |
1710 |
left (or to the right if @var{count} is negative). The default |
left (or to the right if @var{count} is negative). The default |
1711 |
for @var{count} is the window width, minus 2. |
for @var{count} is the window width, minus 2. |
1713 |
The return value is the total amount of leftward horizontal scrolling in |
The return value is the total amount of leftward horizontal scrolling in |
1714 |
effect after the change---just like the value returned by |
effect after the change---just like the value returned by |
1715 |
@code{window-hscroll} (below). |
@code{window-hscroll} (below). |
|
@end deffn |
|
|
|
|
|
@deffn Command scroll-right &optional count |
|
|
This function scrolls the selected window @var{count} columns to the |
|
|
right (or to the left if @var{count} is negative). The default |
|
|
for @var{count} is the window width, minus 2. |
|
|
|
|
|
The return value is the total amount of leftward horizontal scrolling in |
|
|
effect after the change---just like the value returned by |
|
|
@code{window-hscroll} (below). |
|
1716 |
|
|
1717 |
Once you scroll a window as far right as it can go, back to its normal |
Once you scroll a window as far right as it can go, back to its normal |
1718 |
position where the total leftward scrolling is zero, attempts to scroll |
position where the total leftward scrolling is zero, attempts to scroll |
1719 |
any farther right have no effect. |
any farther right have no effect. |
1720 |
|
|
1721 |
|
If @var{set-minimum} is non-@code{nil}, the new scroll amount becomes |
1722 |
|
the lower bound for automatic scrolling; that is, automatic scrolling |
1723 |
|
will not scroll a window to a column less than the value returned by |
1724 |
|
this function. Interactive calls pass non-@code{nil} for |
1725 |
|
@var{set-minimum}. |
1726 |
|
@end deffn |
1727 |
|
|
1728 |
|
@deffn Command scroll-right &optional count set-minimum |
1729 |
|
This function scrolls the selected window @var{count} columns to the |
1730 |
|
right (or to the left if @var{count} is negative). The default |
1731 |
|
for @var{count} is the window width, minus 2. Aside from the direction |
1732 |
|
of scrolling, this works just like @code{scroll-left}. |
1733 |
@end deffn |
@end deffn |
1734 |
|
|
1735 |
@defun window-hscroll &optional window |
@defun window-hscroll &optional window |
2038 |
@end example |
@end example |
2039 |
@end deffn |
@end deffn |
2040 |
|
|
2041 |
|
@defun adjust-window-trailing-edge window delta horizontal |
2042 |
|
This function makes the selected window @var{delta} lines taller or |
2043 |
|
@var{delta} columns wider, by moving the bottom or right edge. This |
2044 |
|
function does not delete other windows; if it cannot make the |
2045 |
|
requested size adjustment, it signals an error. On success, this |
2046 |
|
function returns @code{nil}. |
2047 |
|
@end defun |
2048 |
|
|
2049 |
@defun fit-window-to-buffer &optional window max-height min-height |
@defun fit-window-to-buffer &optional window max-height min-height |
2050 |
This function makes @var{window} the right height to display its |
This function makes @var{window} the right height to display its |
2051 |
contents exactly. If @var{window} is omitted or @code{nil}, it uses |
contents exactly. If @var{window} is omitted or @code{nil}, it uses |