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 01:39:36 +0100 Message-ID: <87y25wkfnb.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> <87a6icoqkm.fsf@gnus.org> <8856c512-a603-fa3e-bf21-c191a8a45afa@yandex.ru> <87bl2slv3j.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13981"; 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 , Manuel Giraud To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Nov 10 01:40:31 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 1mkbfC-0003Pn-Pl for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 10 Nov 2021 01:40:30 +0100 Original-Received: from localhost ([::1]:60592 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mkbfB-0001kg-EP for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 09 Nov 2021 19:40:29 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:52744) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mkbek-0001kY-G4 for bug-gnu-emacs@gnu.org; Tue, 09 Nov 2021 19:40:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53023) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mkbek-00033H-7O for bug-gnu-emacs@gnu.org; Tue, 09 Nov 2021 19:40:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mkbek-0007sG-3b for bug-gnu-emacs@gnu.org; Tue, 09 Nov 2021 19:40: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: Wed, 10 Nov 2021 00:40: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.163650479030246 (code B ref 50572); Wed, 10 Nov 2021 00:40:02 +0000 Original-Received: (at 50572) by debbugs.gnu.org; 10 Nov 2021 00:39:50 +0000 Original-Received: from localhost ([127.0.0.1]:36336 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mkbeY-0007rm-7Y for submit@debbugs.gnu.org; Tue, 09 Nov 2021 19:39:50 -0500 Original-Received: from quimby.gnus.org ([95.216.78.240]:36696) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mkbeV-0007rW-RA for 50572@debbugs.gnu.org; Tue, 09 Nov 2021 19:39:49 -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=uurVvUr40BiNcI1uq88YD6ma6uEvwGONcJ7wfGTXng8=; b=thNz7PQMQzEXp+vY/a8+IKLmL9 ycm11uUunTJsc4JdtB7+XhIWEm5I3eU6GenZEMT5FtrmRITj6Xi1RuJiA8RkXaZ+zFgBl+2mlXyNK ZLRQVnTM3W8+E91zybumlyYMf1AoOmnlPBMGYk5U1pymmaHVakUia+P0gfiKmg8YdS7g=; 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 1mkbeL-00087Q-9A; Wed, 10 Nov 2021 01:39:39 +0100 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAgMAAAAqbBEUAAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAADFBMVEXg2MSohFhCLBz/ //99UzgIAAAAAWJLR0QDEQxM8gAAAAd0SU1FB+ULCgAlEGd0MWcAAAGCSURBVCjPTdG/btswEAbw j4HsIZNcRILjOQEaPQVd2AHaiYMoRJrTAtZTtEN3LxJgTRlEw3dP2Y+00fa46Ie7458T8H9k+c4s YLfmk7nCwLpdvr0ht1yr7FqW8TMvCK6/sfLWu713ufc1Kh11mtQH1Quh46Da6BVSnlWnhGfV4qwy aU+UqlmvGrrTlyPKTn8TGsRbbF6V/cS5Bapf3Jsh40B89ItYxtwOz/PSbAI5hDc8PS63XeCZzWWN l6WxKp7HzrwbrNXTqtduqGGOMPK1+MamGvkDMKN4ZWmNz0jgDmONjY24I2QH1BGGODjkxmJ2uGNP nILDO7BUaS0zDj9sBJ/wwqbyA/e8j0P1s0BWxwfrkU94xAJorpgLa6zpiBnVpXQZ+xm8tTzlLbob dC50IEQzIjSTpoyNsz70hzgS4dxUT9/Tt8QyTS06HB7+wbcJIiwTv39LGWEm+L1ENHHnwTfxz4UL Kf6GdTWyynepZ70ZWeXbmJne70NEw/FxKBxQij9xdtK7GNeEuQAAACV0RVh0ZGF0ZTpjcmVhdGUA MjAyMS0xMS0xMFQwMDozNzoxNiswMDowMPrTOrMAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMjEtMTEt MTBUMDA6Mzc6MTYrMDA6MDCLjoIPAAAAAElFTkSuQmCC X-Now-Playing: Kate Bush's _Remastered (4): The Dreaming_: "Suspended In Gaffa" In-Reply-To: (Dmitry Gutov's message of "Wed, 10 Nov 2021 03:29:23 +0300") 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:219495 Archived-At: Dmitry Gutov writes: > IIRC, it allows backslashes (with such file names printed as > "abc\\def"), but canonical file names use slashes even on Windows. > > So... IDK, call some function which "canonicalizes" the file name > (expand-file-name?) and then use split-string? Yeah, that sounds like a better implementation. > This works much faster in the same 'sudo' session: > > (split-string (expand-file-name buffer-file-name) "/") expand-file-name wouldn't be the right thing here, though. Do we have a function somewhere that just does the slash translation and nothing else? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no