Function: window--preservable-size

window--preservable-size is a byte-compiled function defined in window.el.gz.

Signature

(window--preservable-size WINDOW &optional HORIZONTAL)

Documentation

Return height of WINDOW as window-preserve-size would preserve it.

Optional argument HORIZONTAL non-nil means to return the width of WINDOW as window-preserve-size would preserve it.

Source Code

;; Defined in /usr/src/emacs/lisp/window.el.gz
(defun window--preservable-size (window &optional horizontal)
  "Return height of WINDOW as `window-preserve-size' would preserve it.
Optional argument HORIZONTAL non-nil means to return the width of
WINDOW as `window-preserve-size' would preserve it."
  (if horizontal
      (window-body-width window t)
    (+ (window-body-height window t)
       (window-header-line-height window)
       (window-mode-line-height window))))