changeset 100555:66984afb4693

(Windows): Rewrite description of fit-window-to-buffer.
author Martin Rudalics <rudalics@gmx.at>
date Fri, 19 Dec 2008 09:15:39 +0000
parents d4d66858815a
children 9fca92753ff2
files doc/lispref/ChangeLog doc/lispref/windows.texi
diffstat 2 files changed, 17 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/doc/lispref/ChangeLog	Fri Dec 19 05:42:14 2008 +0000
+++ b/doc/lispref/ChangeLog	Fri Dec 19 09:15:39 2008 +0000
@@ -1,3 +1,8 @@
+2008-12-19  Martin Rudalics  <rudalics@gmx.at>
+
+	* windows.texi (Windows): Rewrite description of
+	fit-window-to-buffer.
+
 2008-12-13  Glenn Morris  <rgm@gnu.org>
 
 	* modes.texi (Font Lock Basics): Fix level description.  (Bug#1534)
--- a/doc/lispref/windows.texi	Fri Dec 19 05:42:14 2008 +0000
+++ b/doc/lispref/windows.texi	Fri Dec 19 09:15:39 2008 +0000
@@ -2167,14 +2167,18 @@
 
 @defun fit-window-to-buffer &optional window max-height min-height
 This function makes @var{window} the right height to display its
-contents exactly.  The default for @var{window} is the selected
-window.
-
-The argument @var{max-height} specifies the maximum height the window
-is allowed to be; @code{nil} means use the frame height.  The argument
-@var{min-height} specifies the minimum height for the window;
-@code{nil} means use @code{window-min-height}.  All these height
-values include the mode line and/or header line.
+contents exactly.  The default for @var{window} is the selected window.
+
+The optional argument @var{max-height} specifies the maximum height the
+window is allowed to be; @code{nil} means use the maximum permissible
+height of a window on @var{window}'s frame.  The optional argument
+@var{min-height} specifies the minimum height for the window; @code{nil}
+means use @code{window-min-height}.  All these height values include the
+mode line and/or header line.
+
+This function can delete windows when their height shrinks below
+@var{min-height}.  It returns non-@code{nil} if it orderly resized
+@var{window}, and @code{nil} otherwise.
 @end defun
 
 @deffn Command shrink-window-if-larger-than-buffer &optional window