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: Andy Moreton
Subject: bug#50572: 28.0.50; [PATCH] fix VC to find the responsible backend with the most specific path.
Date: Sat, 06 Nov 2021 15:01:57 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (windows-nt)

On Sat 06 Nov 2021, Lars Ingebrigtsen wrote:

> Manuel Giraud <manuel@ledu-giraud.fr> writes:
>
>> This patch solves this issue by selecting the backend with the most
>> specific (in fact, the longest string) path to the file.
>
> I think this makes sense (it makes things more consistent and logical),
> and Dmitry agrees, so I've now applied this to Emacs 29.  We'll see
> whether anybody complains.

Picking the more specific filename is good, but the longest string is
the wrong measure: what is wanted is the deepest path. For example:

  verylongdirname/foo
  a/b/c/foo

The second is a shorter string, but more specific.

    AndyM






reply via email to

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