From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#50572: 28.0.50; [PATCH] fix VC to find the responsible backend with the most specific path. Date: Wed, 10 Nov 2021 16:23:13 +0200 Message-ID: <83sfw42ipa.fsf@gnu.org> References: <877dfkxyt4.fsf@elite.giraud> <87cznef8ah.fsf@gnus.org> <86ilx5iaze.fsf@gmail.com> <87pmrdb0zv.fsf@gnus.org> <86mtmgx6gg.fsf@gmail.com> <87fe707b-f2b4-febd-d2ae-acc697b4cee1@yandex.ru> <87zgqgjeaz.fsf@gnus.org> <87cznbt2r1.fsf@elite.giraud> <87h7cn803w.fsf@gnus.org> <878rxzszl8.fsf@elite.giraud> <877ddiuhv7.fsf@gnus.org> <87y25x3e6g.fsf@elite.giraud> <87a6icoqkm.fsf@gnus.org> <8856c512-a603-fa3e-bf21-c191a8a45afa@yandex.ru> <87bl2slv3j.fsf@gnus.org> <87y25wkfnb.fsf@gnus.org> <838rxw41dt.fsf@gnu.org> <87h7ckf9oz.fsf@gnus.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32706"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 50572@debbugs.gnu.org, andrewjmoreton@gmail.com, manuel@ledu-giraud.fr, dgutov@yandex.ru To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Nov 10 15:24:20 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mkoWS-0008IP-DD for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 10 Nov 2021 15:24:20 +0100 Original-Received: from localhost ([::1]:60628 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mkoWR-0007iM-Gz for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 10 Nov 2021 09:24:19 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:48938) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mkoWB-0007eq-48 for bug-gnu-emacs@gnu.org; Wed, 10 Nov 2021 09:24:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54192) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mkoWA-0003XY-Rn for bug-gnu-emacs@gnu.org; Wed, 10 Nov 2021 09:24:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mkoWA-0001Mw-Jx for bug-gnu-emacs@gnu.org; Wed, 10 Nov 2021 09:24:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 10 Nov 2021 14:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50572 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 50572-submit@debbugs.gnu.org id=B50572.16365542105221 (code B ref 50572); Wed, 10 Nov 2021 14:24:02 +0000 Original-Received: (at 50572) by debbugs.gnu.org; 10 Nov 2021 14:23:30 +0000 Original-Received: from localhost ([127.0.0.1]:37505 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mkoVd-0001M8-NB for submit@debbugs.gnu.org; Wed, 10 Nov 2021 09:23:30 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:47940) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mkoVX-0001Lp-N0 for 50572@debbugs.gnu.org; Wed, 10 Nov 2021 09:23:28 -0500 Original-Received: from [2001:470:142:3::e] (port=60880 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mkoVR-0003Py-Pc; Wed, 10 Nov 2021 09:23:17 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=/azSO3AR+Q57hzbhAMGMwZMzdVQjvp8BWaFgYFwxZ9o=; b=HAcof3kWgCMb GR+Y/G7bRauJkV+8tzLmsxrvEP8KkdAqk46AzTYGsWikEtV7cNVxPr/1oyLRQhDFdZqC93Zv0oXEg JRYuv3+8Q0qnFg/sPNtGp4+uPoV6sVW54QDlbBMaYZinn17/ggE5apb7yhSHMmJ3g/imx6Bg5CUWI nntSc6qlIlFpiKqhc5kbYNJlM7xUI4wPPgpZGfmuhNh5F802mGcCw9Fq/UdOAHl0D/N+nu+9A0ONm ffl8f4rQ7hVF/DKesqtOxi2pbdPG2YLuToXndohyF8vTrLXI6VTdDLlhQ46F/vjqinvpRCJvlsx0I OfjbQhqDxOyEKM8EQGMf2w==; Original-Received: from [87.69.77.57] (port=2458 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mkoVR-0007ym-CE; Wed, 10 Nov 2021 09:23:17 -0500 In-Reply-To: <87h7ckf9oz.fsf@gnus.org> (message from Lars Ingebrigtsen on Wed, 10 Nov 2021 13:59:24 +0100) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:219550 Archived-At: > From: Lars Ingebrigtsen > Cc: dgutov@yandex.ru, 50572@debbugs.gnu.org, andrewjmoreton@gmail.com, > manuel@ledu-giraud.fr > Date: Wed, 10 Nov 2021 13:59:24 +0100 > > Eli Zaretskii writes: > > > Why isn't expand-file-name TRT? If the file names are not absolute, > > you cannot reliably compare their "depth" anyway. > > For this particular thing, you probably need absolute paths. But a > general file-name-splitting functions should have that limitation. We can always use "/\\" as SEPARATORS on MS-Windows, can't we? Alternatively, we could loop with file-name-directory, I guess. But if we want a function that returns the "depth" of a file in a filesystem, then it will need to call expand-file-name internally anyway, for the same reason I point out above, right?