From f3277128e0e8741cf20c72c718c83e848cd92f2f Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Fri, 16 Sep 2022 14:17:56 +0300 Subject: [PATCH] ; * lisp/vc/vc.el (vc-responsible-backend): Explain last change. --- lisp/vc/vc.el | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lisp/vc/vc.el b/lisp/vc/vc.el index 05109256bd1..4688137d923 100644 --- a/lisp/vc/vc.el +++ b/lisp/vc/vc.el @@ -1014,6 +1014,10 @@ responsible for the given file." (lambda (backend) (when-let ((dir (vc-call-backend backend 'responsible-p file))) + ;; We run DIR through `expand-file-name' + ;; so that abbreviated directories, such + ;; as "~/", wouldn't look "less specific" + ;; due to their artificially shorter length. (cons backend (expand-file-name dir)))) vc-handled-backends)))) ;; Just a single response (or none); use it. -- 2.39.2