diff options
| author | Glenn Morris | 2012-11-16 20:33:26 -0500 |
|---|---|---|
| committer | Glenn Morris | 2012-11-16 20:33:26 -0500 |
| commit | 6439ae19665a12bd0a88a4a0fb7f38fa8c47504d (patch) | |
| tree | c7577d1523adb03dbcfff57ac8d3d352ef1bb3ae /doc | |
| parent | 9a5e2ee3cc86be6b052cba7033a24a8418a263f1 (diff) | |
| download | emacs-6439ae19665a12bd0a88a4a0fb7f38fa8c47504d.tar.gz emacs-6439ae19665a12bd0a88a4a0fb7f38fa8c47504d.zip | |
Document fit-frame-to-buffer
* doc/lispref/frames.texi (Size and Position): Add fit-frame-to-buffer command.
* doc/lispref/windows.texi (Resizing Windows): Add fit-frame-to-buffer option.
(Window Sizes): Add vindex for window-min-height, window-min-width.
* etc/NEWS: Related markup.
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/lispref/ChangeLog | 6 | ||||
| -rw-r--r-- | doc/lispref/frames.texi | 15 | ||||
| -rw-r--r-- | doc/lispref/windows.texi | 6 |
3 files changed, 27 insertions, 0 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog index 062692ee9f3..b7baac9c2fe 100644 --- a/doc/lispref/ChangeLog +++ b/doc/lispref/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2012-11-17 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * frames.texi (Size and Position): Add fit-frame-to-buffer command. | ||
| 4 | * windows.texi (Resizing Windows): Add fit-frame-to-buffer option. | ||
| 5 | (Window Sizes): Add vindex for window-min-height, window-min-width. | ||
| 6 | |||
| 1 | 2012-11-16 Martin Rudalics <rudalics@gmx.at> | 7 | 2012-11-16 Martin Rudalics <rudalics@gmx.at> |
| 2 | 8 | ||
| 3 | * windows.texi (Choosing Window): Rewrite description of | 9 | * windows.texi (Choosing Window): Rewrite description of |
diff --git a/doc/lispref/frames.texi b/doc/lispref/frames.texi index 27d55c4fdb9..846dfbaf17c 100644 --- a/doc/lispref/frames.texi +++ b/doc/lispref/frames.texi | |||
| @@ -1113,6 +1113,21 @@ The argument @var{pretend} has the same meaning as in | |||
| 1113 | @code{set-frame-height}. | 1113 | @code{set-frame-height}. |
| 1114 | @end defun | 1114 | @end defun |
| 1115 | 1115 | ||
| 1116 | @c FIXME? Belongs more in Emacs manual than here? | ||
| 1117 | @c But eg fit-window-to-buffer is in this manual. | ||
| 1118 | @deffn Command fit-frame-to-buffer &optional frame max-height min-height | ||
| 1119 | This command adjusts the height of @var{frame} (the default is the | ||
| 1120 | selected frame) to fit its contents. The optional arguments | ||
| 1121 | @var{max-height} and @var{min-height} specify the maximum and minimum | ||
| 1122 | new frame heights, respectively. | ||
| 1123 | |||
| 1124 | @vindex fit-frame-to-buffer-bottom-margin | ||
| 1125 | The default minimum height corresponds to @code{window-min-height}. | ||
| 1126 | The default maximum height is the screen height below the current top | ||
| 1127 | position of the frame, minus any margin specified by the option | ||
| 1128 | @code{fit-frame-to-buffer-bottom-margin}. | ||
| 1129 | @end deffn | ||
| 1130 | |||
| 1116 | @node Geometry | 1131 | @node Geometry |
| 1117 | @subsection Geometry | 1132 | @subsection Geometry |
| 1118 | 1133 | ||
diff --git a/doc/lispref/windows.texi b/doc/lispref/windows.texi index 77f1ff9a179..9a5c7f053e6 100644 --- a/doc/lispref/windows.texi +++ b/doc/lispref/windows.texi | |||
| @@ -490,6 +490,8 @@ partially-visible line at the bottom of the text area is not counted. | |||
| 490 | aliases are considered obsolete and will be removed in the future. | 490 | aliases are considered obsolete and will be removed in the future. |
| 491 | 491 | ||
| 492 | @cindex fixed-size window | 492 | @cindex fixed-size window |
| 493 | @vindex window-min-height | ||
| 494 | @vindex window-min-width | ||
| 493 | Commands that change the size of windows (@pxref{Resizing Windows}), | 495 | Commands that change the size of windows (@pxref{Resizing Windows}), |
| 494 | or split them (@pxref{Splitting Windows}), obey the variables | 496 | or split them (@pxref{Splitting Windows}), obey the variables |
| 495 | @code{window-min-height} and @code{window-min-width}, which specify | 497 | @code{window-min-height} and @code{window-min-width}, which specify |
| @@ -633,6 +635,10 @@ variable @code{window-min-height}. | |||
| 633 | If the optional argument @var{override} is non-@code{nil}, this | 635 | If the optional argument @var{override} is non-@code{nil}, this |
| 634 | function ignores any size restrictions imposed by | 636 | function ignores any size restrictions imposed by |
| 635 | @code{window-min-height} and @code{window-min-width}. | 637 | @code{window-min-height} and @code{window-min-width}. |
| 638 | |||
| 639 | @vindex fit-frame-to-buffer | ||
| 640 | If the option @code{fit-frame-to-buffer} is non-@code{nil}, this | ||
| 641 | command may resize the frame to fit its contents. | ||
| 636 | @end deffn | 642 | @end deffn |
| 637 | 643 | ||
| 638 | @deffn Command shrink-window-if-larger-than-buffer &optional window | 644 | @deffn Command shrink-window-if-larger-than-buffer &optional window |