Function: ediff-window-ok-for-display
ediff-window-ok-for-display is a byte-compiled function defined in
ediff-wind.el.gz.
Signature
(ediff-window-ok-for-display WIND)
Source Code
;; Defined in /usr/src/emacs/lisp/vc/ediff-wind.el.gz
;; window is ok, if it is only one window on the frame, not counting the
;; minibuffer, or none of the frame's windows is dedicated.
;; The idea is that it is bad to destroy dedicated windows while creating an
;; ediff window setup
(defun ediff-window-ok-for-display (wind)
(and
(window-live-p wind)
(or
;; only one window
(eq wind (next-window wind 'ignore-minibuffer (window-frame wind)))
;; none is dedicated (in multiframe setup)
(not (ediff-frame-has-dedicated-windows (window-frame wind)))
)))