]> git.eshelyaron.com Git - emacs.git/commitdiff
(Resizing Windows): Document the `preserve-before' argument of the
authorDavid Ponce <david@dponce.com>
Fri, 22 Oct 2004 11:20:12 +0000 (11:20 +0000)
committerDavid Ponce <david@dponce.com>
Fri, 22 Oct 2004 11:20:12 +0000 (11:20 +0000)
functions `enlarge-window' and `shrink-window'.

lispref/ChangeLog
lispref/windows.texi

index 6c9d83edb17def7e298ffe70a1c38cc155a9c7b3..8f5544fb0fe0ad70caf29a695e472fdbfa2d16f7 100644 (file)
@@ -1,3 +1,8 @@
+2004-10-22  David Ponce  <david@dponce.com>
+
+       * windows.texi (Resizing Windows): Document the `preserve-before'
+       argument of the functions `enlarge-window' and `shrink-window'.
+
 2004-10-19  Jason Rumney  <jasonr@gnu.org>
 
        * makefile.w32-in (elisp): Change order of arguments to makeinfo.
index 0fdc6734181eb4a7b9f6b044ce661099285e43a1..0bf3a9ed211e6deac7f663fbc09172acb45ce2e0 100644 (file)
@@ -1922,7 +1922,7 @@ that change the size of windows and low-level functions that access
 window size.  Emacs does not permit overlapping windows or gaps between
 windows, so resizing one window affects other windows.
 
-@deffn Command enlarge-window size &optional horizontal
+@deffn Command enlarge-window size &optional horizontal preserve-before
 This function makes the selected window @var{size} lines taller,
 stealing lines from neighboring windows.  It takes the lines from one
 window 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
 size of a fixed-size window, @code{enlarge-window} gets an error
 instead.
 
+If @var{preserve-before} is non-@code{nil}, this function does not
+change the size of the siblings above or to the left of the selected
+window.  Only the size of the siblings below or to the right of the
+selected window are changed.
+
 If @var{size} is negative, this function shrinks the window by
 @minus{}@var{size} lines or columns.  If that makes the window smaller
 than the minimum size (@code{window-min-height} and
@@ -1965,7 +1970,7 @@ It could be defined as follows:
 @end example
 @end deffn
 
-@deffn Command shrink-window size &optional horizontal
+@deffn Command shrink-window size &optional horizontal preserve-before
 This function is like @code{enlarge-window} but negates the argument
 @var{size}, making the selected window smaller by giving lines (or
 columns) to the other windows.  If the window shrinks below