Function: ediff-with-live-window
ediff-with-live-window is a macro defined in ediff-wind.el.gz.
Signature
(ediff-with-live-window WINDOW &rest BODY)
Documentation
Like with-selected-window but only if WINDOW is live.
If WINDOW is not live (or not a window) do nothing and don't evaluate BODY, instead returning nil.
Source Code
;; Defined in /usr/src/emacs/lisp/vc/ediff-wind.el.gz
;;; Functions
(defmacro ediff-with-live-window (window &rest body)
"Like `with-selected-window' but only if WINDOW is live.
If WINDOW is not live (or not a window) do nothing and don't evaluate
BODY, instead returning nil."
(declare (indent 1) (debug (form body)))
(cl-once-only (window)
`(when (window-live-p ,window)
(with-selected-window ,window
,@body))))