[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/lisp/ediff-util.el
From: |
Michael Kifer |
Subject: |
[Emacs-diffs] Changes to emacs/lisp/ediff-util.el |
Date: |
Tue, 16 Apr 2002 01:49:13 -0400 |
Index: emacs/lisp/ediff-util.el
diff -c emacs/lisp/ediff-util.el:1.43 emacs/lisp/ediff-util.el:1.44
*** emacs/lisp/ediff-util.el:1.43 Wed Mar 20 01:36:18 2002
--- emacs/lisp/ediff-util.el Tue Apr 16 01:49:11 2002
***************
*** 42,47 ****
--- 42,51 ----
(defvar ediff-after-quit-hook-internal nil)
+ (and noninteractive
+ (eval-when-compile
+ (load "reporter" 'noerror)))
+
(eval-when-compile
(let ((load-path (cons (expand-file-name ".") load-path)))
(or (featurep 'ediff-init)
***************
*** 2554,2559 ****
--- 2558,2564 ----
(buff-B ediff-buffer-B)
(buff-C ediff-buffer-C)
(ctl-buf ediff-control-buffer)
+ (ctl-wind (ediff-get-visible-buffer-window ctl-buf))
(ctl-frame ediff-control-frame)
(three-way-job ediff-3way-job)
(main-frame (cond ((window-live-p ediff-window-A)
***************
*** 2571,2578 ****
(if (boundp 'ediff-patch-diagnostics)
(ediff-kill-buffer-carefully ediff-patch-diagnostics))
! (if (and (ediff-window-display-p) (frame-live-p ctl-frame))
! (delete-frame ctl-frame))
;; Hide bottom toolbar. --marcpa
(if (not (ediff-multiframe-setup-p))
(ediff-kill-bottom-toolbar))
--- 2576,2587 ----
(if (boundp 'ediff-patch-diagnostics)
(ediff-kill-buffer-carefully ediff-patch-diagnostics))
! ;; delete control frame or window
! (cond ((and (ediff-window-display-p) (frame-live-p ctl-frame))
! (delete-frame ctl-frame))
! ((window-live-p ctl-wind)
! (delete-window ctl-wind)))
!
;; Hide bottom toolbar. --marcpa
(if (not (ediff-multiframe-setup-p))
(ediff-kill-bottom-toolbar))
***************
*** 2603,2611 ****
(ediff-get-visible-buffer-window buff-B))
(ediff-buffer-live-p buff-C))
(funcall ediff-split-window-function))
! (switch-to-buffer buff-C)
! (balance-windows)))
(error)))
(message "")
))
--- 2612,2620 ----
(ediff-get-visible-buffer-window buff-B))
(ediff-buffer-live-p buff-C))
(funcall ediff-split-window-function))
! (switch-to-buffer buff-C)))
(error)))
+ (balance-windows)
(message "")
))
***************
*** 3308,3335 ****
;; idea suggested by Hannu Koivisto <address@hidden>
(defun ediff-clone-buffer-for-region-comparison (buff region-name)
(let ((cloned-buff (ediff-make-cloned-buffer buff region-name))
- (wind (ediff-get-visible-buffer-window buff))
(pop-up-windows t)
other-wind
msg-buf)
(ediff-with-current-buffer cloned-buff
(setq ediff-temp-indirect-buffer t))
- (if (window-live-p wind)
- (set-window-buffer wind cloned-buff))
(pop-to-buffer cloned-buff)
(with-temp-buffer
(erase-buffer)
(insert
(format "\n ******* Mark a region in buffer %s *******\n"
(buffer-name cloned-buff)))
(insert
! (format "\n\t When done, type %s Use %s to abort\n "
! (ediff-format-bindings-of 'exit-recursive-edit)
! (ediff-format-bindings-of 'abort-recursive-edit)))
(goto-char (point-min))
(setq msg-buf (current-buffer))
! (other-window 1)
! (set-window-buffer (selected-window) msg-buf)
(shrink-window-if-larger-than-buffer)
(if (window-live-p wind)
(select-window wind))
--- 3317,3348 ----
;; idea suggested by Hannu Koivisto <address@hidden>
(defun ediff-clone-buffer-for-region-comparison (buff region-name)
(let ((cloned-buff (ediff-make-cloned-buffer buff region-name))
(pop-up-windows t)
+ wind
other-wind
msg-buf)
(ediff-with-current-buffer cloned-buff
(setq ediff-temp-indirect-buffer t))
(pop-to-buffer cloned-buff)
+ (setq wind (ediff-get-visible-buffer-window cloned-buff))
+ (select-window wind)
+ (delete-other-windows)
+ (split-window-vertically)
+ (ediff-select-lowest-window)
+ (setq other-wind (selected-window))
(with-temp-buffer
(erase-buffer)
(insert
(format "\n ******* Mark a region in buffer %s *******\n"
(buffer-name cloned-buff)))
(insert
! (ediff-with-current-buffer buff
! (format "\n\t When done, type %s Use %s to abort\n "
! (ediff-format-bindings-of 'exit-recursive-edit)
! (ediff-format-bindings-of 'abort-recursive-edit))))
(goto-char (point-min))
(setq msg-buf (current-buffer))
! (set-window-buffer other-wind msg-buf)
(shrink-window-if-larger-than-buffer)
(if (window-live-p wind)
(select-window wind))
***************
*** 3363,3371 ****
(defun ediff-make-cloned-buffer (buff region-name)
(ediff-make-indirect-buffer
! buff (concat
! (if (stringp buff) buff (buffer-name buff))
! region-name (symbol-name (gensym)))))
(defun ediff-make-indirect-buffer (base-buf indirect-buf-name)
--- 3376,3384 ----
(defun ediff-make-cloned-buffer (buff region-name)
(ediff-make-indirect-buffer
! buff (generate-new-buffer-name
! (concat (if (stringp buff) buff (buffer-name buff)) region-name))
! ))
(defun ediff-make-indirect-buffer (base-buf indirect-buf-name)
***************
*** 3444,3451 ****
(let ((answer "")
(possibilities (list ?A ?B ?C))
(zmacs-regions t)
- (ctl-buf (current-buffer))
- quit-now
use-current-diff-p
begA begB endA endB bufA bufB)
--- 3457,3462 ----
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] Changes to emacs/lisp/ediff-util.el,
Michael Kifer <=