bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#50572: 28.0.50; [PATCH] fix VC to find the responsible backend with


From: Lars Ingebrigtsen
Subject: bug#50572: 28.0.50; [PATCH] fix VC to find the responsible backend with the most specific path.
Date: Wed, 10 Nov 2021 01:39:36 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Dmitry Gutov <dgutov@yandex.ru> writes:

> IIRC, it allows backslashes (with such file names printed as
> "abc\\def"), but canonical file names use slashes even on Windows.
>
> So... IDK, call some function which "canonicalizes" the file name
> (expand-file-name?) and then use split-string?

Yeah, that sounds like a better implementation.

> This works much faster in the same 'sudo' session:
>
>   (split-string (expand-file-name buffer-file-name) "/")

expand-file-name wouldn't be the right thing here, though.  Do we have a
function somewhere that just does the slash translation and nothing
else?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





reply via email to

[Prev in Thread] Current Thread [Next in Thread]