Function: window-preserved-size

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

Signature

(window-preserved-size &optional WINDOW HORIZONTAL)

Documentation

Return preserved height of window WINDOW.

WINDOW must be a live window and defaults to the selected one. Optional argument HORIZONTAL non-nil means to return preserved width of WINDOW.

View in manual

Source Code

;; Defined in /usr/src/emacs/lisp/window.el.gz
(defun window-preserved-size (&optional window horizontal)
  "Return preserved height of window WINDOW.
WINDOW must be a live window and defaults to the selected one.
Optional argument HORIZONTAL non-nil means to return preserved
width of WINDOW."
  (setq window (window-normalize-window window t))
  (let ((parameter (window-parameter window 'window-preserved-size)))
    (when (eq (nth 0 parameter) (window-buffer window))
      (nth (if horizontal 1 2) parameter))))