comparison doc/lispref/windows.texi @ 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 c69004518f91
children d74b83c02d95
comparison
equal deleted inserted replaced
100554:d4d66858815a 100555:66984afb4693
2165 function returns @code{nil}. 2165 function returns @code{nil}.
2166 @end defun 2166 @end defun
2167 2167
2168 @defun fit-window-to-buffer &optional window max-height min-height 2168 @defun fit-window-to-buffer &optional window max-height min-height
2169 This function makes @var{window} the right height to display its 2169 This function makes @var{window} the right height to display its
2170 contents exactly. The default for @var{window} is the selected 2170 contents exactly. The default for @var{window} is the selected window.
2171 window. 2171
2172 2172 The optional argument @var{max-height} specifies the maximum height the
2173 The argument @var{max-height} specifies the maximum height the window 2173 window is allowed to be; @code{nil} means use the maximum permissible
2174 is allowed to be; @code{nil} means use the frame height. The argument 2174 height of a window on @var{window}'s frame. The optional argument
2175 @var{min-height} specifies the minimum height for the window; 2175 @var{min-height} specifies the minimum height for the window; @code{nil}
2176 @code{nil} means use @code{window-min-height}. All these height 2176 means use @code{window-min-height}. All these height values include the
2177 values include the mode line and/or header line. 2177 mode line and/or header line.
2178
2179 This function can delete windows when their height shrinks below
2180 @var{min-height}. It returns non-@code{nil} if it orderly resized
2181 @var{window}, and @code{nil} otherwise.
2178 @end defun 2182 @end defun
2179 2183
2180 @deffn Command shrink-window-if-larger-than-buffer &optional window 2184 @deffn Command shrink-window-if-larger-than-buffer &optional window
2181 This command shrinks @var{window} vertically to be as small as possible 2185 This command shrinks @var{window} vertically to be as small as possible
2182 while still showing the full contents of its buffer---but not less than 2186 while still showing the full contents of its buffer---but not less than