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: Wed, 10 Nov 2021 00:30:01 +0100 Message-ID: <87a6icoqkm.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> <877ddiuhv7.fsf@gnus.org> <87y25x3e6g.fsf@elite.giraud> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13776"; 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 Wed Nov 10 00:31:29 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 1mkaaO-0003Ow-TT for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 10 Nov 2021 00:31:29 +0100 Original-Received: from localhost ([::1]:51696 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mkaaN-0006Y6-2L for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 09 Nov 2021 18:31:27 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:39750) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mkaZz-0006XI-Fp for bug-gnu-emacs@gnu.org; Tue, 09 Nov 2021 18:31:04 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:52881) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mkaZy-0006oO-Sq for bug-gnu-emacs@gnu.org; Tue, 09 Nov 2021 18:31:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mkaZy-0007y2-Ib for bug-gnu-emacs@gnu.org; Tue, 09 Nov 2021 18:31: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 23:31: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.163650061830572 (code B ref 50572); Tue, 09 Nov 2021 23:31:02 +0000 Original-Received: (at 50572) by debbugs.gnu.org; 9 Nov 2021 23:30:18 +0000 Original-Received: from localhost ([127.0.0.1]:36194 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mkaZG-0007x2-Dv for submit@debbugs.gnu.org; Tue, 09 Nov 2021 18:30:18 -0500 Original-Received: from quimby.gnus.org ([95.216.78.240]:35760) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mkaZC-0007vi-0b for 50572@debbugs.gnu.org; Tue, 09 Nov 2021 18:30:16 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To: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=tWE1hZTJAU93dfC+REpc7aIkfHkYd5lX8q5M/UeskdQ=; b=CAKhfQYtH8zEiL/WfkrXch1bga Zq48DwkgjHaqjRcU2vLOWb6RpYW4okzPfhbMP4ZwdMoTQ20lDGFEukhkI9o/yzdy5+N5xa6yTodGf gFCR7AAYqvofvDdU9FgRdsRVgHlSRMLQYzkQGffMIcck79OcXupecyZGcs7qWW5d8SNw=; 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 1mkaZ2-0007cZ-6U; Wed, 10 Nov 2021 00:30:06 +0100 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAElBMVEUlGxNZPSCfZzTl sVjy2bf///9DxbfrAAAAAWJLR0QF+G/pxwAAAAd0SU1FB+ULCRcaKWtziUgAAAG8SURBVDjLbZOB dcMgDERFugCiHcDIXSDGC9Rm/5l6J2GcvJbk9TV8SacTIKK6tioiSbWqL4mlpZ0BCkHGR3KA3TNE zSqTMr8MXHtbblDwx4AAWm+eWswMEOWKg7L3zcWSbY3aObm8fu7nM8CKLhjtQkKJAT57/9FSDEIA qNSXAOXsZzhJlNz7mcMRY26DdmlDDsDNe+CUAPju/bjBGfaG+jlBa5BIyYH2ENEAG7feRGCC4ClX tn7Ric+DYElXNkWOqbFlmc1TpI4f6xZnx6hMkecAViUaSVkqnfyMkdgCwLN85Jw1RDKCxDD+7EMD zY9wwlKs5KAmTXk4CQB3PPvFWDrG5Z2IhIdqvCtf4SSGl/l9mF+iFxEEI1we61ZZ0S3mCXC7rBpP zJ0MABtlbZutzYbIAOYX2FemyDk0klEUu/CAgdOJZ6Tk3bQ9gItEKQ7GM7qDD6pHTzJL8YZB5PDY EJriIrx2Yyag6w3Q8DL6RcdmE3xMdReKHO9j78cEl0rcD+9urkQQI1J9A6i1heW/wF86Hqif2QR8 zb7Lde8rjqThLZc/QCs3rpTbCEI1it2vbXSSxsv/Z6WX/38BegJXrINNen4AAAAldEVYdGRhdGU6 Y3JlYXRlADIwMjEtMTEtMDlUMjM6MjY6NDErMDA6MDBfodNZAAAAJXRFWHRkYXRlOm1vZGlmeQAy MDIxLTExLTA5VDIzOjI2OjQxKzAwOjAwLvxr5QAAAABJRU5ErkJggg== X-Now-Playing: Kate Bush's _Remastered (2): Lionheart_: "Oh England My Lionheart" In-Reply-To: <87y25x3e6g.fsf@elite.giraud> (Manuel Giraud's message of "Tue, 09 Nov 2021 09:51:03 +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:219477 Archived-At: Manuel Giraud writes: > That was what I found also inspired from dired-up-directory. So here is > what I've done. What bothers me is that it introduce two general purpose > (and probably buggy) functions that should reside somewhere else IMO. =F0=9F=98=80 I think a new, general function would be useful here (it's something I've sloppily implemented a couple of times before for private usage), so I've now made a better version and called it 'file-name-split', which should hopefully work on all systems. (Actually, I'm not 100% sure whether there are any systems that use \ for file names internally these days?) It's pushed to the trunk now -- can you adjust the patch to use that instead? --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no