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: Dmitry Gutov
Subject: bug#50572: 28.0.50; [PATCH] fix VC to find the responsible backend with the most specific path.
Date: Wed, 10 Nov 2021 03:29:23 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0

On 10.11.2021 03:20, Lars Ingebrigtsen wrote:
What is the situation with path separators on Windows, anyway?  If it
uses "/", too, then this function isn't necessary -- split-string will
do the job just as well.

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?

This works much faster in the same 'sudo' session:

  (split-string (expand-file-name buffer-file-name) "/")





reply via email to

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