From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#50572: 28.0.50; [PATCH] fix VC to find the responsible backend with the most specific path. Date: Tue, 09 Nov 2021 04:29:16 +0100 Message-ID: <877ddiuhv7.fsf@gnus.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> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24747"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: 50572@debbugs.gnu.org, Andy Moreton , Dmitry Gutov To: Manuel Giraud Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Nov 09 04:30:14 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 1mkHpu-0006Ew-Ia for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 09 Nov 2021 04:30:14 +0100 Original-Received: from localhost ([::1]:48808 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mkHpr-0007XP-VE for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 08 Nov 2021 22:30:11 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:53064) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mkHpj-0007X3-12 for bug-gnu-emacs@gnu.org; Mon, 08 Nov 2021 22:30:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48608) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mkHpi-00032K-P6 for bug-gnu-emacs@gnu.org; Mon, 08 Nov 2021 22:30:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mkHpi-0001QN-LK for bug-gnu-emacs@gnu.org; Mon, 08 Nov 2021 22:30:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 09 Nov 2021 03:30: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.16364285775410 (code B ref 50572); Tue, 09 Nov 2021 03:30:02 +0000 Original-Received: (at 50572) by debbugs.gnu.org; 9 Nov 2021 03:29:37 +0000 Original-Received: from localhost ([127.0.0.1]:60154 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mkHpI-0001PC-SN for submit@debbugs.gnu.org; Mon, 08 Nov 2021 22:29:37 -0500 Original-Received: from quimby.gnus.org ([95.216.78.240]:54442) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mkHpF-0001Ov-0b for 50572@debbugs.gnu.org; Mon, 08 Nov 2021 22:29:34 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=yzbDVRMhpP6I0eeT/T0S9T/TAm9XaiTtNbvISaEUFJ8=; b=EekFaME9DDN4BYdR8lgAsPg0BT IRhVeiY40K887rQQCAbktu9NYYn7+53qiEAPHjEUMVB23vozaKTF7gH3fO4QlpO3zhEByVTMnjzwM VF/m31KKrRu3V6TfoZl7kUtpQaKVq8pxs/3Y3pW6ediBPhTY/X3wIDw6ovedloyIk2Mw=; Original-Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mkHoz-0008AT-Bc; Tue, 09 Nov 2021 04:29:25 +0100 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAD1BMVEW5uLhbWVmAf34i ISD////vkLw8AAAAAWJLR0QEj2jZUQAAAAd0SU1FB+ULCQMSBhNUNbUAAAG1SURBVDjLdZSLkesw CEVZvQaMaABwA4vpv7e9oNhRZvI040ThCC4fK0TsrkSDao1+7HB8q8il9CwlIzmyDgCY+8v+w8Mm M2PLLNOmL6fBrBYcc1wAMfn2cObDJSLjAMDawBwS4jwJ53newOBPZ/IlAKfEDYZxpo4MYYTCp9sS b3CRpCvSNjjwAm4scEEsdWTOE6G7+gXmT/IxSg+5QB92bABi4FFieYFaDVINhFYkfHLUF+x5TeAF TMqEImApn2ywFg7KcvgAdYwzZANW2m2GYn4A49tYz3WDTnI7Gd5xkwJgj43UmlCa3WmVoefWIKAx FQElwHA6VpmUAF5KZ7RXscobALXTGGboQGCssVIhiayRu3q1TvKusiYYDbRGIfwGiDyr6XBIl6ck SoFWPu16t0TuokqWY/OoWaqOfwfktZUWqLQxWKsyMJD5AOZSrT50j3nz6DeDRTrPN1j7Or73uIFI x8jJO6EVITvhD49VWZZU7IiePNClt0oI5dcV9h9w+VeAK0rfwGWG27L04tziX1xX8lzZ2i6sBXgH v70f/Wez+vwK9Vvvcbz+Vx6ATf3GfcZl1j++RZlXQCgnCwAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAy MS0xMS0wOVQwMzoxODowNSswMDowMEnha68AAAAldEVYdGRhdGU6bW9kaWZ5ADIwMjEtMTEtMDlU MDM6MTg6MDUrMDA6MDA4vNMTAAAAAElFTkSuQmCC X-Now-Playing: Witches of Malibu's _Rogue Pulse: Gravity Collapse (10)_: "Nomad Witches" In-Reply-To: <878rxzszl8.fsf@elite.giraud> (Manuel Giraud's message of "Mon, 08 Nov 2021 11:37:07 +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:219387 Archived-At: Manuel Giraud writes: > I thought that we might already have a function for this. Does counting > slashes will work with Windows path? Hm... Actually, I'm not sure. Perhaps doing a series of file-name-directory/directory-file-name in a loop (to peel off the directory components) would be the best algorithm here? And I don't think we have a function for this -- at least I can't find anything promising while poking around. > Side question: as this bug report is closed, should I open a new one > with the new patch? Opening a new bug report is best, but it's not required. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no