Function: window-safe-min-size
window-safe-min-size is a byte-compiled function defined in
window.el.gz.
Signature
(window-safe-min-size &optional WINDOW HORIZONTAL PIXELWISE)
Documentation
Return safe minimum size of WINDOW.
WINDOW must be a valid window and defaults to the selected one. Optional argument HORIZONTAL non-nil means return the minimum number of columns of WINDOW; otherwise return the minimum number of WINDOW's lines.
Optional argument PIXELWISE non-nil means return the minimum pixel-size of WINDOW.
Source Code
;; Defined in /usr/src/emacs/lisp/window.el.gz
(defun window-safe-min-size (&optional window horizontal pixelwise)
"Return safe minimum size of WINDOW.
WINDOW must be a valid window and defaults to the selected one.
Optional argument HORIZONTAL non-nil means return the minimum
number of columns of WINDOW; otherwise return the minimum number
of WINDOW's lines.
Optional argument PIXELWISE non-nil means return the minimum pixel-size
of WINDOW."
(setq window (window-normalize-window window))
(if pixelwise
(if horizontal
(* window-safe-min-width
(frame-char-width (window-frame window)))
(* window-safe-min-height
(frame-char-height (window-frame window))))
(if horizontal window-safe-min-width window-safe-min-height)))