Variable: fit-frame-to-buffer-sizes
fit-frame-to-buffer-sizes is a customizable variable defined in
window.el.gz.
Value
(nil nil nil nil)
Documentation
Size boundaries of frame for fit-frame-to-buffer(var)/fit-frame-to-buffer(fun).
This list specifies the total maximum and minimum lines and
maximum and minimum columns of the root window of any frame that
shall be fit to its buffer. If any of these values is non-nil,
it overrides the corresponding argument of fit-frame-to-buffer(var)/fit-frame-to-buffer(fun).
On window systems where the menubar can wrap, fitting a frame to its buffer may swallow the last line(s). Specifying an appropriate minimum width value here can avoid such wrapping.
See also fit-frame-to-buffer-margins.
This variable was added, or its default value changed, in Emacs 24.4.
Probably introduced at or before Emacs version 24.4.
Source Code
;; Defined in /usr/src/emacs/lisp/window.el.gz
(defcustom fit-frame-to-buffer-sizes '(nil nil nil nil)
"Size boundaries of frame for `fit-frame-to-buffer'.
This list specifies the total maximum and minimum lines and
maximum and minimum columns of the root window of any frame that
shall be fit to its buffer. If any of these values is non-nil,
it overrides the corresponding argument of `fit-frame-to-buffer'.
On window systems where the menubar can wrap, fitting a frame to
its buffer may swallow the last line(s). Specifying an
appropriate minimum width value here can avoid such wrapping.
See also `fit-frame-to-buffer-margins'."
:version "24.4"
:type '(list
(choice
:tag "Maximum Height"
:value nil
:format "%[MaxHeight%] %v "
(const :tag "None" :format "%t" nil)
(integer :tag "Lines" :size 5))
(choice
:tag "Minimum Height"
:value nil
:format "%[MinHeight%] %v "
(const :tag "None" :format "%t" nil)
(integer :tag "Lines" :size 5))
(choice
:tag "Maximum Width"
:value nil
:format "%[MaxWidth%] %v "
(const :tag "None" :format "%t" nil)
(integer :tag "Columns" :size 5))
(choice
:tag "Minimum Width"
:value nil
:format "%[MinWidth%] %v\n"
(const :tag "None" :format "%t" nil)
(integer :tag "Columns" :size 5)))
:group 'help)