40
|
1 ;; -*-Emacs-Lisp-*-
|
|
2 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
3 ;;
|
|
4 ;; File: efs-dump.el
|
|
5 ;; Release: $efs release: 1.15 $
|
42
|
6 ;; Version: #Revision: 1.1 $
|
40
|
7 ;; RCS:
|
|
8 ;; Description: Install a bare-bones EFS hook into file-name-handler-alist
|
|
9 ;; for dumping
|
|
10 ;; Author: Mike Sperber <sperber@informatik.uni-tuebingen.de>
|
|
11 ;;
|
|
12 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
13
|
42
|
14 (provide 'efs-dump)
|
|
15
|
|
16 (defconst efs-dump-version
|
|
17 (concat (substring "$efs release: 1.15 $" 14 -2)
|
|
18 "/"
|
|
19 (substring "#Revision: 1.1 $" 11 -2)))
|
|
20
|
40
|
21 ;;;###autoload
|
42
|
22 (or (assoc efs-path-root-regexp file-name-handler-alist)
|
|
23 (setq file-name-handler-alist
|
|
24 (cons
|
|
25 (cons efs-path-root-regexp 'remote-path-file-handler-function)
|
|
26 file-name-handler-alist)))
|
|
27
|
|
28 ;;;###autoload
|
|
29 (defun remote-path-file-handler-function (operation &rest args)
|
|
30 "Function to call special file handlers for remote files."
|
|
31 (if allow-remote-paths
|
|
32 (apply 'efs-file-handler-function operation args)
|
|
33 (let ((inhibit-file-name-handlers
|
|
34 (cons 'remote-path-file-handler-function
|
|
35 (and (eq inhibit-file-name-operation operation)
|
|
36 inhibit-file-name-handlers)))
|
|
37 (inhibit-file-name-operation operation))
|
|
38 (apply operation args))))
|
48
|
39
|
|
40 ;;; end of efs-dump.el
|