Function: window-safely-shrinkable-p
window-safely-shrinkable-p is a byte-compiled function defined in
window.el.gz.
Signature
(window-safely-shrinkable-p &optional WINDOW)
Documentation
Return t if WINDOW can be shrunk without shrinking other windows.
WINDOW defaults to the selected window.
Source Code
;; Defined in /usr/src/emacs/lisp/window.el.gz
(defun window-safely-shrinkable-p (&optional window)
"Return t if WINDOW can be shrunk without shrinking other windows.
WINDOW defaults to the selected window."
(with-selected-window (or window (selected-window))
(let ((edges (window-edges)))
(or (= (nth 2 edges) (nth 2 (window-edges (previous-window))))
(= (nth 0 edges) (nth 0 (window-edges (next-window))))))))