diff options
| author | Richard M. Stallman | 1994-05-13 07:42:34 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-05-13 07:42:34 +0000 |
| commit | b993101e36d60b7d9db9adceaba9a61063e3cbb9 (patch) | |
| tree | 6fbe6eb356edef730d3afa5598d288709ea071e8 | |
| parent | 6f8b4d01023be8232a45cde0112568fd4da0f88c (diff) | |
| download | emacs-b993101e36d60b7d9db9adceaba9a61063e3cbb9.tar.gz emacs-b993101e36d60b7d9db9adceaba9a61063e3cbb9.zip | |
(vc-registered): Use find-file-name-handler.
| -rw-r--r-- | lisp/vc-hooks.el | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/lisp/vc-hooks.el b/lisp/vc-hooks.el index 83fec473e07..8d7c1acdf69 100644 --- a/lisp/vc-hooks.el +++ b/lisp/vc-hooks.el | |||
| @@ -73,14 +73,7 @@ Otherwise, not displayed.") | |||
| 73 | (defun vc-registered (file) | 73 | (defun vc-registered (file) |
| 74 | (let (handler handlers) | 74 | (let (handler handlers) |
| 75 | (if (boundp 'file-name-handler-alist) | 75 | (if (boundp 'file-name-handler-alist) |
| 76 | (save-match-data | 76 | (setq handler (find-file-name-handler file 'vc-registered))) |
| 77 | (setq handlers file-name-handler-alist) | ||
| 78 | (while (and (consp handlers) (null handler)) | ||
| 79 | (if (and (consp (car handlers)) | ||
| 80 | (stringp (car (car handlers))) | ||
| 81 | (string-match (car (car handlers)) file)) | ||
| 82 | (setq handler (cdr (car handlers)))) | ||
| 83 | (setq handlers (cdr handlers))))) | ||
| 84 | (if handler | 77 | (if handler |
| 85 | (funcall handler 'vc-registered file) | 78 | (funcall handler 'vc-registered file) |
| 86 | ;; Search for a master corresponding to the given file | 79 | ;; Search for a master corresponding to the given file |