Function: ediff-setup-windows
ediff-setup-windows is a byte-compiled function defined in
ediff-wind.el.gz.
Signature
(ediff-setup-windows BUFFER-A BUFFER-B BUFFER-C CONTROL-BUFFER)
Source Code
;; Defined in /usr/src/emacs/lisp/vc/ediff-wind.el.gz
;;; Common window setup routines
;; Set up the window configuration. If POS is given, set the points to
;; the beginnings of the buffers.
;; When 3way comparison is added, this will have to choose the appropriate
;; setup function based on ediff-job-name
(defun ediff-setup-windows (buffer-A buffer-B buffer-C control-buffer)
;; Make sure we are not in the minibuffer window when we try to delete
;; all other windows.
(run-hooks 'ediff-before-setup-windows-hook)
(if (eq (selected-window) (minibuffer-window))
(other-window 1))
;; in case user did a no-no on a tty
(or (display-graphic-p)
(setq ediff-window-setup-function #'ediff-setup-windows-plain))
(or (ediff-keep-window-config control-buffer)
(funcall
(with-current-buffer control-buffer ediff-window-setup-function)
buffer-A buffer-B buffer-C control-buffer))
(run-hooks 'ediff-after-setup-windows-hook))