aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorGlenn Morris2012-11-16 20:33:26 -0500
committerGlenn Morris2012-11-16 20:33:26 -0500
commit6439ae19665a12bd0a88a4a0fb7f38fa8c47504d (patch)
treec7577d1523adb03dbcfff57ac8d3d352ef1bb3ae /doc
parent9a5e2ee3cc86be6b052cba7033a24a8418a263f1 (diff)
downloademacs-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/ChangeLog6
-rw-r--r--doc/lispref/frames.texi15
-rw-r--r--doc/lispref/windows.texi6
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 @@
12012-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
12012-11-16 Martin Rudalics <rudalics@gmx.at> 72012-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
1119This command adjusts the height of @var{frame} (the default is the
1120selected frame) to fit its contents. The optional arguments
1121@var{max-height} and @var{min-height} specify the maximum and minimum
1122new frame heights, respectively.
1123
1124@vindex fit-frame-to-buffer-bottom-margin
1125The default minimum height corresponds to @code{window-min-height}.
1126The default maximum height is the screen height below the current top
1127position 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.
490aliases are considered obsolete and will be removed in the future. 490aliases 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}),
494or split them (@pxref{Splitting Windows}), obey the variables 496or 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}.
633If the optional argument @var{override} is non-@code{nil}, this 635If the optional argument @var{override} is non-@code{nil}, this
634function ignores any size restrictions imposed by 636function 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
640If the option @code{fit-frame-to-buffer} is non-@code{nil}, this
641command 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