Howdy all.
I noticed that using the latest Ediff package (from the current SUMO, in
conjunction with 21.1.14) fails to work if clearcase mode has been loaded.
Using the elisp debugger I've traced the problem to changes in
ediff-file-remote-p which now calls:
(find-file-name-handler file-name 'file-local-copy)
instead of it's previous method of checking:
(car (cond ((featurep 'efs-auto) (efs-ftp-path file-name))
((fboundp 'file-remote-p) (file-remote-p file-name))
(t (require 'ange-ftp)
;; Can happen only in Emacs, since XEmacs has file-remote-p
(ange-ftp-ftp-name file-name))))
and the latest clearcase.el available from:
http://www.ultranet.com/~esler/ccase-mode/
sets a find-file-name-handler:
;; This handler ensures that VC doesn't attempt to operate inside the MVFS.
;; This stops it from futile searches for RCS directories and the like inside.
;; It prevents a certain amount of clutter in the MVFS' noent-cache.
;;
(defun clearcase-suppress-vc-within-mvfs-file-name-handler (operation &rest
args)
(clearcase-when-debugging
(if (fboundp 'clearcase-utl-syslog)
(clearcase-utl-syslog "*clearcase-fh-trace*"
(cons
"clearcase-suppress-vc-within-mvfs-file-name-handler:"
(cons operation args)))))
;; Inhibit recursion:
;;
(let ((inhibit-file-name-handlers
(cons 'clearcase-suppress-vc-within-mvfs-file-name-handler
(and (eq inhibit-file-name-operation operation)
inhibit-file-name-handlers)))
(inhibit-file-name-operation operation))
(cond
((and (eq operation 'vc-registered)
(clearcase-file-would-be-in-view-p (car args)))
nil)
(t
(apply operation args)))))
and if I set the variable that keeps this handler from being installed, ediff
works fine. But if this handler gets installed, ediff won't work on ANY 2
files (not just files residing in the clearcase filesystem), failing with a
"Can't diff remote files:" message.
So I'm wondering where the problem actually lies, in the handler that
clearcase.el registers or in the ediff definition of ediff-file-remote-p? I
felt that someone else on the list would be much better qualified to answer
that question than myself (I have no clue).
Thanks,
Chuck
--
Charles K. Hines <ckh(a)requesttech.com> <hines(a)gderome.com>
Principal Scientist at ReQuest Technologies Inc (
http://www.ReQuestTech.com/)
Martial Arts Instructor [Modern Arnis and Balintawak Escrima]
"Go back to sleep, Chuck. You're just havin' a nightmare
-- of course, we ARE still in Hell." (Gary Larson)