aboutsummaryrefslogtreecommitdiffstats
path: root/lispref
diff options
context:
space:
mode:
authorDavid Ponce2004-10-22 11:20:12 +0000
committerDavid Ponce2004-10-22 11:20:12 +0000
commit38be9dbb6f9b1204cd0d36ad032fc8e7a7524ef1 (patch)
tree42123f05abcc28d181cc500cc40930c63d1bee76 /lispref
parentd5ddd795bdab373fe62ccfd099c270fd97da0964 (diff)
downloademacs-38be9dbb6f9b1204cd0d36ad032fc8e7a7524ef1.tar.gz
emacs-38be9dbb6f9b1204cd0d36ad032fc8e7a7524ef1.zip
(Resizing Windows): Document the `preserve-before' argument of the
functions `enlarge-window' and `shrink-window'.
Diffstat (limited to 'lispref')
-rw-r--r--lispref/ChangeLog5
-rw-r--r--lispref/windows.texi9
2 files changed, 12 insertions, 2 deletions
diff --git a/lispref/ChangeLog b/lispref/ChangeLog
index 6c9d83edb17..8f5544fb0fe 100644
--- a/lispref/ChangeLog
+++ b/lispref/ChangeLog
@@ -1,3 +1,8 @@
12004-10-22 David Ponce <david@dponce.com>
2
3 * windows.texi (Resizing Windows): Document the `preserve-before'
4 argument of the functions `enlarge-window' and `shrink-window'.
5
12004-10-19 Jason Rumney <jasonr@gnu.org> 62004-10-19 Jason Rumney <jasonr@gnu.org>
2 7
3 * makefile.w32-in (elisp): Change order of arguments to makeinfo. 8 * makefile.w32-in (elisp): Change order of arguments to makeinfo.
diff --git a/lispref/windows.texi b/lispref/windows.texi
index 0fdc6734181..0bf3a9ed211 100644
--- a/lispref/windows.texi
+++ b/lispref/windows.texi
@@ -1922,7 +1922,7 @@ that change the size of windows and low-level functions that access
1922window size. Emacs does not permit overlapping windows or gaps between 1922window size. Emacs does not permit overlapping windows or gaps between
1923windows, so resizing one window affects other windows. 1923windows, so resizing one window affects other windows.
1924 1924
1925@deffn Command enlarge-window size &optional horizontal 1925@deffn Command enlarge-window size &optional horizontal preserve-before
1926This function makes the selected window @var{size} lines taller, 1926This function makes the selected window @var{size} lines taller,
1927stealing lines from neighboring windows. It takes the lines from one 1927stealing lines from neighboring windows. It takes the lines from one
1928window at a time until that window is used up, then takes from another. 1928window at a time until that window is used up, then takes from another.
@@ -1945,6 +1945,11 @@ other windows are ``robbed.'' If it would be necessary to alter the
1945size of a fixed-size window, @code{enlarge-window} gets an error 1945size of a fixed-size window, @code{enlarge-window} gets an error
1946instead. 1946instead.
1947 1947
1948If @var{preserve-before} is non-@code{nil}, this function does not
1949change the size of the siblings above or to the left of the selected
1950window. Only the size of the siblings below or to the right of the
1951selected window are changed.
1952
1948If @var{size} is negative, this function shrinks the window by 1953If @var{size} is negative, this function shrinks the window by
1949@minus{}@var{size} lines or columns. If that makes the window smaller 1954@minus{}@var{size} lines or columns. If that makes the window smaller
1950than the minimum size (@code{window-min-height} and 1955than the minimum size (@code{window-min-height} and
@@ -1965,7 +1970,7 @@ It could be defined as follows:
1965@end example 1970@end example
1966@end deffn 1971@end deffn
1967 1972
1968@deffn Command shrink-window size &optional horizontal 1973@deffn Command shrink-window size &optional horizontal preserve-before
1969This function is like @code{enlarge-window} but negates the argument 1974This function is like @code{enlarge-window} but negates the argument
1970@var{size}, making the selected window smaller by giving lines (or 1975@var{size}, making the selected window smaller by giving lines (or
1971columns) to the other windows. If the window shrinks below 1976columns) to the other windows. If the window shrinks below