From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Manuel Giraud Newsgroups: gmane.emacs.bugs Subject: bug#50572: 28.0.50; [PATCH] fix VC to find the responsible backend with the most specific path. Date: Mon, 08 Nov 2021 11:37:07 +0100 Message-ID: <878rxzszl8.fsf@elite.giraud> 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> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5151"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (berkeley-unix) Cc: 50572@debbugs.gnu.org, Andy Moreton , Dmitry Gutov To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Nov 08 11:38:08 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 1mk22S-0001AB-EO for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 08 Nov 2021 11:38:08 +0100 Original-Received: from localhost ([::1]:56066 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mk22R-0004Zh-Bz for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 08 Nov 2021 05:38:07 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:52532) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mk22L-0004ZY-UN for bug-gnu-emacs@gnu.org; Mon, 08 Nov 2021 05:38:01 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:45003) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mk22L-0007RN-MG for bug-gnu-emacs@gnu.org; Mon, 08 Nov 2021 05:38:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mk22L-0000DP-KO for bug-gnu-emacs@gnu.org; Mon, 08 Nov 2021 05:38:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Manuel Giraud Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 08 Nov 2021 10:38:01 +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.1636367833770 (code B ref 50572); Mon, 08 Nov 2021 10:38:01 +0000 Original-Received: (at 50572) by debbugs.gnu.org; 8 Nov 2021 10:37:13 +0000 Original-Received: from localhost ([127.0.0.1]:56549 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mk21Y-0000CM-TC for submit@debbugs.gnu.org; Mon, 08 Nov 2021 05:37:13 -0500 Original-Received: from ledu-giraud.fr ([51.159.28.247]:30187) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mk21W-0000CD-D7 for 50572@debbugs.gnu.org; Mon, 08 Nov 2021 05:37:11 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=rsa; bh=26xZor/c3/NSfxHK B6LQki1YoG//G0RhAbsv/NRW2Pk=; h=in-reply-to:date:references:subject: cc:to:from; d=ledu-giraud.fr; b=gbUh9/1+Rzi5g1x7VXrGar4iRnbA6z8JF3l9hD 4Qgal/x3m0bkE6RBD4l6RNrMeem5MYQGijKFhQ/Tj3A9+pgZYCzk4UgkOkWPdXWnzivGhE o+EQxus4RL73YaxFczMsCoUuikQNix/DEnYfMzAxruhP/0Gi/WVplnCQ32aoJ/wU4AYhoo dfBubFwSpsdIMmGssKZMb57EA8bQFSdCZ3gzC0SmcVzeZuFfJGTOZIkrItNpKC1d+kLKBH vVobxytss7xor0Ao59Oxjdy7pQGfHMESYRc1rjBa0rugsZ8oA2ULUb7uzMPKcWYWsfKzQ0 V0P0/jZ9mVMTQ5yTzfBNXATw== Original-Received: from elite.giraud ( [10.1.1.1]) by ledu-giraud.fr (OpenSMTPD) with ESMTPSA id 6ad59661 (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); Mon, 8 Nov 2021 11:37:08 +0100 (CET) In-Reply-To: <87h7cn803w.fsf@gnus.org> (Lars Ingebrigtsen's message of "Mon, 08 Nov 2021 10:31:31 +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:219343 Archived-At: Lars Ingebrigtsen writes: > Manuel Giraud writes: > >> Sure. But from the discussion with Eli on this bug report, I thought >> that it was decided to left `C-x v v' untouched and use `C-u C-x v v' >> when needed. A user can also set its prefered backends by ordering >> vc-handled-backends as he wanted to. > > The commands should be consistent, and that wasn't the case with these > vc commands before the change. Ok then. >> Anyway, I'll tried to rework that but do you happen to know from the top >> of your head a function to count the "directory deepness" of a file? > > Just count slashes? I thought that we might already have a function for this. Does counting slashes will work with Windows path? Side question: as this bug report is closed, should I open a new one with the new patch? -- Manuel Giraud