aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/ediff-init.el
diff options
context:
space:
mode:
authorMichael Kifer2000-12-25 07:57:37 +0000
committerMichael Kifer2000-12-25 07:57:37 +0000
commit7261ece3c08f89db35cd3f486b02fb71249df240 (patch)
tree1b2420d60d881b4899a571c53ce413192d913d84 /lisp/ediff-init.el
parent7dfb59f43023d50d5cdfed096953ec276a91f58c (diff)
downloademacs-7261ece3c08f89db35cd3f486b02fb71249df240.tar.gz
emacs-7261ece3c08f89db35cd3f486b02fb71249df240.zip
2000-12-25 Michael Kifer <kifer@cs.sunysb.edu>
* ediff-init.el (ediff-quit-hook,ediff-suspend-hook): changed initialization; use add-hook. (ediff-file-remote-p): use file-local-copy. * ediff-ptch.el (ediff-prompt-for-patch-buffer): improved defaults. * ediff.el (ediff-patch-buffer): bug fix. (ediff-revision): allow selection of the file at the prompt.
Diffstat (limited to 'lisp/ediff-init.el')
-rw-r--r--lisp/ediff-init.el18
1 files changed, 11 insertions, 7 deletions
diff --git a/lisp/ediff-init.el b/lisp/ediff-init.el
index 4c1fc9b48a3..8f3d472bd5d 100644
--- a/lisp/ediff-init.el
+++ b/lisp/ediff-init.el
@@ -443,11 +443,11 @@ set local variables that determine how the display looks like."
443 :type 'hook 443 :type 'hook
444 :group 'ediff-hook) 444 :group 'ediff-hook)
445 445
446(defcustom ediff-suspend-hook (list 'ediff-default-suspend-function) 446(defcustom ediff-suspend-hook nil
447 "*Hooks to run in the Ediff control buffer when Ediff is suspended." 447 "*Hooks to run in the Ediff control buffer when Ediff is suspended."
448 :type 'hook 448 :type 'hook
449 :group 'ediff-hook) 449 :group 'ediff-hook)
450(defcustom ediff-quit-hook (list 'ediff-cleanup-mess) 450(defcustom ediff-quit-hook nil
451 "*Hooks to run in the Ediff control buffer after finishing Ediff." 451 "*Hooks to run in the Ediff control buffer after finishing Ediff."
452 :type 'hook 452 :type 'hook
453 :group 'ediff-hook) 453 :group 'ediff-hook)
@@ -1152,6 +1152,9 @@ this variable represents.")
1152(put 'ediff-fine-diff-face-Ancestor 'ediff-help-echo 1152(put 'ediff-fine-diff-face-Ancestor 'ediff-help-echo
1153 "A `refinement' of the current difference region") 1153 "A `refinement' of the current difference region")
1154 1154
1155(add-hook 'ediff-quit-hook 'ediff-cleanup-mess)
1156(add-hook 'ediff-suspend-hook 'ediff-default-suspend-function)
1157
1155 1158
1156;;; Overlays 1159;;; Overlays
1157 1160
@@ -1273,11 +1276,12 @@ This default should work without changes."
1273 1276
1274(or (fboundp 'ediff-file-remote-p) ; user supplied his own function: use it 1277(or (fboundp 'ediff-file-remote-p) ; user supplied his own function: use it
1275 (defun ediff-file-remote-p (file-name) 1278 (defun ediff-file-remote-p (file-name)
1276 (car (cond ((featurep 'efs-auto) (efs-ftp-path file-name)) 1279 (find-file-name-handler file-name 'file-local-copy)))
1277 ((fboundp 'file-remote-p) (file-remote-p file-name)) 1280;;; (or (and (featurep 'efs-auto) (efs-ftp-path file-name))
1278 (t (require 'ange-ftp) 1281;;; (and (featurep 'tramp) (tramp-tramp-file-p file-name))
1279 ;; Can happen only in Emacs, since XEmacs has file-remote-p 1282;;; (and (fboundp 'file-remote-p) (file-remote-p file-name))
1280 (ange-ftp-ftp-name file-name)))))) 1283;;; ;; Can happen only in Emacs, since XEmacs has file-remote-p
1284;;; (and (require 'ange-ftp) (ange-ftp-ftp-name file-name)))))
1281 1285
1282 1286
1283(defsubst ediff-frame-unsplittable-p (frame) 1287(defsubst ediff-frame-unsplittable-p (frame)