Mercurial > emacs
comparison lisp/ediff-wind.el @ 12020:6ef622c132df
(ediff-setup-control-frame): Make
Ediff delete the old control frame before creating a new one.
author | Karl Heuer <kwzh@gnu.org> |
---|---|
date | Tue, 30 May 1995 19:20:47 +0000 |
parents | 8b4f8ba23b60 |
children | 4a13777b153b |
comparison
equal
deleted
inserted
replaced
12019:63ee64941021 | 12020:6ef622c132df |
---|---|
766 | 766 |
767 (ediff-eval-in-buffer ctl-buffer | 767 (ediff-eval-in-buffer ctl-buffer |
768 (run-hooks 'ediff-before-setup-control-frame-hooks)) | 768 (run-hooks 'ediff-before-setup-control-frame-hooks)) |
769 | 769 |
770 (setq old-ctl-frame (ediff-eval-in-buffer ctl-buffer ediff-control-frame)) | 770 (setq old-ctl-frame (ediff-eval-in-buffer ctl-buffer ediff-control-frame)) |
771 (if (and (ediff-frame-live-p old-ctl-frame) | 771 (if (frame-live-p old-ctl-frame) (delete-frame old-ctl-frame)) |
772 (eq (window-frame (cdr (assq 'minibuffer (frame-parameters old-ctl-frame)))) | 772 (redraw-display) |
773 designated-minibuffer-frame)) | 773 ;; Make the frame while ctl-buff is current, so that |
774 (setq ctl-frame old-ctl-frame) | 774 ;; ediff-control-frame-parameters will have the right value. |
775 (redraw-display) | 775 (ediff-eval-in-buffer ctl-buffer |
776 ;; Make the frame while ctl-buff is current, so that | 776 (let ((default-minibuffer-frame designated-minibuffer-frame)) |
777 ;; ediff-control-frame-parameters will have the right value. | 777 (setq ctl-frame (ediff-make-frame ediff-control-frame-parameters) |
778 (ediff-eval-in-buffer ctl-buffer | 778 ctl-buffer (setq ediff-control-frame ctl-frame)))) |
779 (let ((default-minibuffer-frame designated-minibuffer-frame)) | |
780 (setq ctl-frame (ediff-make-frame | |
781 ediff-control-frame-parameters)))) | |
782 (ediff-eval-in-buffer ctl-buffer (setq ediff-control-frame ctl-frame))) | |
783 | 779 |
784 (setq ctl-frame-iconified-p (ediff-frame-iconified-p ctl-frame)) | 780 (setq ctl-frame-iconified-p (ediff-frame-iconified-p ctl-frame)) |
785 (ediff-select-frame ctl-frame) | 781 (ediff-select-frame ctl-frame) |
786 (if (window-dedicated-p (selected-window)) | 782 (if (window-dedicated-p (selected-window)) |
787 () | 783 () |