Mercurial > hg > xemacs-beta
diff lisp/ediff/ediff-wind.el @ 110:fe104dbd9147 r20-1b7
Import from CVS: tag r20-1b7
author | cvs |
---|---|
date | Mon, 13 Aug 2007 09:19:45 +0200 |
parents | 6a378aca36af |
children | 34a5b81f86ba |
line wrap: on
line diff
--- a/lisp/ediff/ediff-wind.el Mon Aug 13 09:18:41 2007 +0200 +++ b/lisp/ediff/ediff-wind.el Mon Aug 13 09:19:45 2007 +0200 @@ -535,8 +535,12 @@ (if use-same-frame (let ((window-min-height 1)) - ;; avoid dedicated and non-splittable windows - (ediff-skip-unsuitable-frames) + (if (and (eq frame-A frame-B) + (eq frame-B frame-C) + (frame-live-p frame-A)) + (select-frame frame-A) + ;; avoid dedicated and non-splittable windows + (ediff-skip-unsuitable-frames)) (delete-other-windows) (setq merge-window-lines (max 2 (round (* (window-height) merge-window-share)))) @@ -698,8 +702,10 @@ (if use-same-frame (let (wind-width-or-height) ; this affects 3way setups only - ;; avoid dedicated and non-splittable windows - (ediff-skip-unsuitable-frames) + (if (and (eq frame-A frame-B) (frame-live-p frame-A)) + (select-frame frame-A) + ;; avoid dedicated and non-splittable windows + (ediff-skip-unsuitable-frames)) (delete-other-windows) (switch-to-buffer buf-A) (setq wind-A (selected-window))