aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2005-11-27 19:27:13 +0000
committerRichard M. Stallman2005-11-27 19:27:13 +0000
commit7279aaf668ba72fd32bd2c6f382d99046d14a32f (patch)
tree653ca3d29fab762955ab528964bf941118076d2c
parent0d384044c48a4e5d6aa12d51c7b3165433225e85 (diff)
downloademacs-7279aaf668ba72fd32bd2c6f382d99046d14a32f.tar.gz
emacs-7279aaf668ba72fd32bd2c6f382d99046d14a32f.zip
(Resizing Windows): Add adjust-window-trailing-edge.
-rw-r--r--lispref/windows.texi36
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
1217This function positions point in @var{window} at position 1217This 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
1220If @var{window} is selected, and its buffer is current,
1221this 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
1702bound for automatic scrolling, i.e. automatic scrolling will not 1705bound for automatic scrolling, i.e. automatic scrolling will not
1703scroll a window to a column less than the specified one. 1706scroll 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
1706This function scrolls the selected window @var{count} columns to the 1709This function scrolls the selected window @var{count} columns to the
1707left (or to the right if @var{count} is negative). The default 1710left (or to the right if @var{count} is negative). The default
1708for @var{count} is the window width, minus 2. 1711for @var{count} is the window width, minus 2.
@@ -1710,20 +1713,23 @@ for @var{count} is the window width, minus 2.
1710The return value is the total amount of leftward horizontal scrolling in 1713The return value is the total amount of leftward horizontal scrolling in
1711effect after the change---just like the value returned by 1714effect 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
1716This function scrolls the selected window @var{count} columns to the
1717right (or to the left if @var{count} is negative). The default
1718for @var{count} is the window width, minus 2.
1719
1720The return value is the total amount of leftward horizontal scrolling in
1721effect after the change---just like the value returned by
1722@code{window-hscroll} (below).
1723 1716
1724Once you scroll a window as far right as it can go, back to its normal 1717Once you scroll a window as far right as it can go, back to its normal
1725position where the total leftward scrolling is zero, attempts to scroll 1718position where the total leftward scrolling is zero, attempts to scroll
1726any farther right have no effect. 1719any farther right have no effect.
1720
1721If @var{set-minimum} is non-@code{nil}, the new scroll amount becomes
1722the lower bound for automatic scrolling; that is, automatic scrolling
1723will not scroll a window to a column less than the value returned by
1724this 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
1729This function scrolls the selected window @var{count} columns to the
1730right (or to the left if @var{count} is negative). The default
1731for @var{count} is the window width, minus 2. Aside from the direction
1732of 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
2042This function makes the selected window @var{delta} lines taller or
2043@var{delta} columns wider, by moving the bottom or right edge. This
2044function does not delete other windows; if it cannot make the
2045requested size adjustment, it signals an error. On success, this
2046function 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
2036This function makes @var{window} the right height to display its 2050This function makes @var{window} the right height to display its
2037contents exactly. If @var{window} is omitted or @code{nil}, it uses 2051contents exactly. If @var{window} is omitted or @code{nil}, it uses