Variable: fit-frame-to-buffer
fit-frame-to-buffer is a customizable variable defined in
window.el.gz.
Value
nil
Documentation
Non-nil means fit-window-to-buffer can fit a frame to its buffer.
A frame is fit if and only if its root window is a live window
and this option is non-nil. If this is horizontally, frames
are resized horizontally only. If this is vertically, frames
are resized vertically only. Any other non-nil value means
frames can be resized in both dimensions.
This variable was added, or its default value changed, in Emacs 24.4.
Probably introduced at or before Emacs version 24.3.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/window.el.gz
;; `fit-frame-to-buffer' eventually wants to know the real frame sizes
;; counting title bar and outer borders.
(defcustom fit-frame-to-buffer nil
"Non-nil means `fit-window-to-buffer' can fit a frame to its buffer.
A frame is fit if and only if its root window is a live window
and this option is non-nil. If this is `horizontally', frames
are resized horizontally only. If this is `vertically', frames
are resized vertically only. Any other non-nil value means
frames can be resized in both dimensions."
:type 'boolean
:version "24.4"
:group 'help)