diff options
| author | Martin Rudalics | 2014-12-25 14:13:26 +0100 |
|---|---|---|
| committer | Martin Rudalics | 2014-12-25 14:13:26 +0100 |
| commit | 000bc54951fc2c8f502176755fca53ca2b8aa9a4 (patch) | |
| tree | 4edeaf2f351b10c30ba4f358ffacdfd298ef0019 /doc | |
| parent | 437854dc5d9a6146b7095392e750112819b7e8a6 (diff) | |
| download | emacs-000bc54951fc2c8f502176755fca53ca2b8aa9a4.tar.gz emacs-000bc54951fc2c8f502176755fca53ca2b8aa9a4.zip | |
Make `resize-mini-windows' customizable and update documentation for it.
* cus-start.el (resize-mini-windows): Make it customizable.
* minibuf.texi (Minibuffer Windows): Add descriptions of
`resize-mini-windows' and `max-mini-window-height'.
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/lispref/ChangeLog | 3 | ||||
| -rw-r--r-- | doc/lispref/minibuf.texi | 27 |
2 files changed, 28 insertions, 2 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog index b74719cd029..2d964cf6505 100644 --- a/doc/lispref/ChangeLog +++ b/doc/lispref/ChangeLog | |||
| @@ -2,6 +2,9 @@ | |||
| 2 | 2 | ||
| 3 | * windows.texi (Windows): Resync @menu order with @node order. | 3 | * windows.texi (Windows): Resync @menu order with @node order. |
| 4 | 4 | ||
| 5 | * minibuf.texi (Minibuffer Windows): Add descriptions of | ||
| 6 | `resize-mini-windows' and `max-mini-window-height'. | ||
| 7 | |||
| 5 | 2014-12-25 Glenn Morris <rgm@gnu.org> | 8 | 2014-12-25 Glenn Morris <rgm@gnu.org> |
| 6 | 9 | ||
| 7 | * windows.texi (Windows): Sync @menu order with @node order. | 10 | * windows.texi (Windows): Sync @menu order with @node order. |
diff --git a/doc/lispref/minibuf.texi b/doc/lispref/minibuf.texi index 1c6a74a89fd..57ae0e999b4 100644 --- a/doc/lispref/minibuf.texi +++ b/doc/lispref/minibuf.texi | |||
| @@ -2218,8 +2218,8 @@ contents of the minibuffer before the point. | |||
| 2218 | @section Minibuffer Windows | 2218 | @section Minibuffer Windows |
| 2219 | @cindex minibuffer windows | 2219 | @cindex minibuffer windows |
| 2220 | 2220 | ||
| 2221 | These functions access and select minibuffer windows | 2221 | These functions access and select minibuffer windows, test whether they |
| 2222 | and test whether they are active. | 2222 | are active and control how they get resized. |
| 2223 | 2223 | ||
| 2224 | @defun active-minibuffer-window | 2224 | @defun active-minibuffer-window |
| 2225 | This function returns the currently active minibuffer window, or | 2225 | This function returns the currently active minibuffer window, or |
| @@ -2260,6 +2260,29 @@ This function returns non-@code{nil} if @var{window} is the currently | |||
| 2260 | active minibuffer window. | 2260 | active minibuffer window. |
| 2261 | @end defun | 2261 | @end defun |
| 2262 | 2262 | ||
| 2263 | The following two options control whether minibuffer windows are resized | ||
| 2264 | automatically and how large they can get in the process. | ||
| 2265 | |||
| 2266 | @defopt resize-mini-windows | ||
| 2267 | This option specifies whether minibuffer windows are resized | ||
| 2268 | automatically. The default value is @code{grow-only}, which means that | ||
| 2269 | a minibuffer window by default expands automatically to accommodate the | ||
| 2270 | text it displays and shrinks back to one line as soon as the minibuffer | ||
| 2271 | gets empty. If the value is @code{t}, Emacs will always try to fit the | ||
| 2272 | height of a minibuffer window to the text it displays (with a minimum of | ||
| 2273 | one line). If the value is @code{nil}, a minibuffer window never | ||
| 2274 | changes size automatically. In that case the window resizing commands | ||
| 2275 | (@pxref{Resizing Windows}) can be used to adjust its height. | ||
| 2276 | @end defopt | ||
| 2277 | |||
| 2278 | @defopt max-mini-window-height | ||
| 2279 | This option provides a maximum height for resizing minibuffer windows | ||
| 2280 | automatically. A floating-point number specifies a fraction of the | ||
| 2281 | frame's height; an integer specifies the maximum number of lines. The | ||
| 2282 | default value is 0.25. | ||
| 2283 | @end defopt | ||
| 2284 | |||
| 2285 | |||
| 2263 | @node Minibuffer Contents | 2286 | @node Minibuffer Contents |
| 2264 | @section Minibuffer Contents | 2287 | @section Minibuffer Contents |
| 2265 | 2288 | ||