From 26688e0e9c2cd74f4ea7866ab08773388aa084c4 Mon Sep 17 00:00:00 2001 From: Michael Albinus Date: Sat, 12 Aug 2023 15:17:32 +0200 Subject: [PATCH] Remove superfluous check from vc-hooks.el * lisp/vc/vc-hooks.el (vc-registered): Don't check whether `file-name-handler-alist' is bound, the check is superfluous. --- lisp/vc/vc-hooks.el | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lisp/vc/vc-hooks.el b/lisp/vc/vc-hooks.el index 00a7659209e..e75165ea2e9 100644 --- a/lisp/vc/vc-hooks.el +++ b/lisp/vc/vc-hooks.el @@ -321,8 +321,7 @@ backend is tried first." ((and (file-name-directory file) (string-match vc-ignore-dir-regexp (file-name-directory file))) nil) - ((and (boundp 'file-name-handler-alist) - (setq handler (find-file-name-handler file 'vc-registered))) + ((setq handler (find-file-name-handler file 'vc-registered)) ;; handler should set vc-backend and return t if registered (funcall handler 'vc-registered file)) (t -- 2.39.5