# HG changeset patch # User Richard M. Stallman # Date 768814954 0 # Node ID dfd719c6490753ca2fd665608d83a5f749a0f51a # Parent 8193d122cf6ee3be497986c97281e89e6a73d9b5 (vc-registered): Use find-file-name-handler. diff -r 8193d122cf6e -r dfd719c64907 lisp/vc-hooks.el --- a/lisp/vc-hooks.el Fri May 13 07:18:38 1994 +0000 +++ b/lisp/vc-hooks.el Fri May 13 07:42:34 1994 +0000 @@ -73,14 +73,7 @@ (defun vc-registered (file) (let (handler handlers) (if (boundp 'file-name-handler-alist) - (save-match-data - (setq handlers file-name-handler-alist) - (while (and (consp handlers) (null handler)) - (if (and (consp (car handlers)) - (stringp (car (car handlers))) - (string-match (car (car handlers)) file)) - (setq handler (cdr (car handlers)))) - (setq handlers (cdr handlers))))) + (setq handler (find-file-name-handler file 'vc-registered))) (if handler (funcall handler 'vc-registered file) ;; Search for a master corresponding to the given file