Function: window--preserve-size

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

Signature

(window--preserve-size WINDOW HORIZONTAL)

Documentation

Return non-nil when the height of WINDOW shall be preserved.

Optional argument HORIZONTAL non-nil means to return non-nil when the width of WINDOW shall be preserved.

Source Code

;; Defined in /usr/src/emacs/lisp/window.el.gz
(defun window--preserve-size (window horizontal)
  "Return non-nil when the height of WINDOW shall be preserved.
Optional argument HORIZONTAL non-nil means to return non-nil when
the width of WINDOW shall be preserved."
  (let ((size (window-preserved-size window horizontal)))
    (and (numberp size)
	 (= size (window-body-size window horizontal t)))))