diff options
| author | Richard M. Stallman | 2005-11-27 19:27:13 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2005-11-27 19:27:13 +0000 |
| commit | 7279aaf668ba72fd32bd2c6f382d99046d14a32f (patch) | |
| tree | 653ca3d29fab762955ab528964bf941118076d2c | |
| parent | 0d384044c48a4e5d6aa12d51c7b3165433225e85 (diff) | |
| download | emacs-7279aaf668ba72fd32bd2c6f382d99046d14a32f.tar.gz emacs-7279aaf668ba72fd32bd2c6f382d99046d14a32f.zip | |
(Resizing Windows): Add adjust-window-trailing-edge.
| -rw-r--r-- | lispref/windows.texi | 36 |
1 files changed, 25 insertions, 11 deletions
diff --git a/lispref/windows.texi b/lispref/windows.texi index 56ec80b9a24..efb7cf32326 100644 --- a/lispref/windows.texi +++ b/lispref/windows.texi | |||
| @@ -1216,6 +1216,9 @@ forms. But that value is hard to find. | |||
| 1216 | @defun set-window-point window position | 1216 | @defun set-window-point window position |
| 1217 | This function positions point in @var{window} at position | 1217 | This function positions point in @var{window} at position |
| 1218 | @var{position} in @var{window}'s buffer. It returns @var{position}. | 1218 | @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}. | ||
| 1219 | @end defun | 1222 | @end defun |
| 1220 | 1223 | ||
| 1221 | @node Window Start | 1224 | @node Window Start |
| @@ -1702,7 +1705,7 @@ scrolling value explicitly. The value you specify serves as a lower | |||
| 1702 | bound for automatic scrolling, i.e. automatic scrolling will not | 1705 | bound for automatic scrolling, i.e. automatic scrolling will not |
| 1703 | scroll a window to a column less than the specified one. | 1706 | scroll a window to a column less than the specified one. |
| 1704 | 1707 | ||
| 1705 | @deffn Command scroll-left &optional count | 1708 | @deffn Command scroll-left &optional count set-minimum |
| 1706 | This function scrolls the selected window @var{count} columns to the | 1709 | This function scrolls the selected window @var{count} columns to the |
| 1707 | left (or to the right if @var{count} is negative). The default | 1710 | left (or to the right if @var{count} is negative). The default |
| 1708 | for @var{count} is the window width, minus 2. | 1711 | for @var{count} is the window width, minus 2. |
| @@ -1710,20 +1713,23 @@ for @var{count} is the window width, minus 2. | |||
| 1710 | The return value is the total amount of leftward horizontal scrolling in | 1713 | The return value is the total amount of leftward horizontal scrolling in |
| 1711 | effect after the change---just like the value returned by | 1714 | effect after the change---just like the value returned by |
| 1712 | @code{window-hscroll} (below). | 1715 | @code{window-hscroll} (below). |
| 1713 | @end deffn | ||
| 1714 | |||
| 1715 | @deffn Command scroll-right &optional count | ||
| 1716 | This function scrolls the selected window @var{count} columns to the | ||
| 1717 | right (or to the left if @var{count} is negative). The default | ||
| 1718 | for @var{count} is the window width, minus 2. | ||
| 1719 | |||
| 1720 | The return value is the total amount of leftward horizontal scrolling in | ||
| 1721 | effect after the change---just like the value returned by | ||
| 1722 | @code{window-hscroll} (below). | ||
| 1723 | 1716 | ||
| 1724 | Once you scroll a window as far right as it can go, back to its normal | 1717 | Once you scroll a window as far right as it can go, back to its normal |
| 1725 | position where the total leftward scrolling is zero, attempts to scroll | 1718 | position where the total leftward scrolling is zero, attempts to scroll |
| 1726 | any farther right have no effect. | 1719 | 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}. | ||
| 1727 | @end deffn | 1733 | @end deffn |
| 1728 | 1734 | ||
| 1729 | @defun window-hscroll &optional window | 1735 | @defun window-hscroll &optional window |
| @@ -2032,6 +2038,14 @@ It could be defined as follows: | |||
| 2032 | @end example | 2038 | @end example |
| 2033 | @end deffn | 2039 | @end deffn |
| 2034 | 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 | |||
| 2035 | @defun fit-window-to-buffer &optional window max-height min-height | 2049 | @defun fit-window-to-buffer &optional window max-height min-height |
| 2036 | This function makes @var{window} the right height to display its | 2050 | This function makes @var{window} the right height to display its |
| 2037 | contents exactly. If @var{window} is omitted or @code{nil}, it uses | 2051 | contents exactly. If @var{window} is omitted or @code{nil}, it uses |