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: Manuel Giraud
Subject: bug#50572: 28.0.50; [PATCH] fix VC to find the responsible backend with the most specific path.
Date: Mon, 08 Nov 2021 10:28:50 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (berkeley-unix)

Lars Ingebrigtsen <larsi@gnus.org> writes:

> Dmitry Gutov <dgutov@yandex.ru> writes:
>
>>> Longer is better yes, but the patch counts characters when it should
>>> count directories to determine which path is longer.
>>
>> Err, yes. That's a problem.
>
> Manuel, can you rework vc-backend-for-registration to count directory
> depth instead of characters?

Sure. But from the discussion with Eli on this bug report, I thought
that it was decided to left `C-x v v' untouched and use `C-u C-x v v'
when needed. A user can also set its prefered backends by ordering
vc-handled-backends as he wanted to.

Anyway, I'll tried to rework that but do you happen to know from the top
of your head a function to count the "directory deepness" of a file?
-- 
Manuel Giraud





reply via email to

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