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.
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))
(buffer (nth 0 parameter))
(width (nth 1 parameter))
(height (nth 2 parameter)))
(when (eq buffer (window-buffer window))
(if horizontal width height))))