2 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
5 ;; Release: $efs release: 1.24 $
6 ;; Version: #Revision: 1.2 $
8 ;; Description: Install a bare-bones EFS hook into file-name-handler-alist
10 ;; Author: Mike Sperber <sperber@informatik.uni-tuebingen.de>
12 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
16 (defconst efs-dump-version
17 (concat (substring "$efs release: 1.24 $" 14 -2)
19 (substring "#Revision: 1.2 $" 11 -2)))
22 (defvar efs-path-root-regexp "^/[^/:]+:"
23 "Regexp to match the `/user@host:' root of an efs full path.")
26 (or (assoc efs-path-root-regexp file-name-handler-alist)
27 (setq file-name-handler-alist
29 (cons efs-path-root-regexp 'remote-path-file-handler-function)
30 file-name-handler-alist)))
32 (autoload 'efs-file-handler-function "efs" "\
33 Function to call special file handlers for remote files." nil nil)
36 (defun remote-path-file-handler-function (operation &rest args)
37 "Function to call special file handlers for remote files."
38 (if allow-remote-paths
39 (apply 'efs-file-handler-function operation args)
40 (let ((inhibit-file-name-handlers
41 (cons 'remote-path-file-handler-function
42 (and (eq inhibit-file-name-operation operation)
43 inhibit-file-name-handlers)))
44 (inhibit-file-name-operation operation))
45 (apply operation args))))
47 ;;; end of efs-dump.el