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: Thu, 11 Nov 2021 17:09:37 +0200 Message-ID: <83czn620ge.fsf@gnu.org> References: <877dfkxyt4.fsf@elite.giraud> <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> <83sfw42ipa.fsf@gnu.org> <87zgqbe6xu.fsf@gnus.org> <83y25v189s.fsf@gnu.org> <87r1bm6fy5.fsf@gnus.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39830"; 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 Thu Nov 11 16:10:37 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 1mlBin-000ADj-OB for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 11 Nov 2021 16:10:37 +0100 Original-Received: from localhost ([::1]:57088 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mlBim-0003U4-8U for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 11 Nov 2021 10:10:36 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:60268) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mlBiF-0003Do-9x for bug-gnu-emacs@gnu.org; Thu, 11 Nov 2021 10:10:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58642) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mlBiE-00088B-0H for bug-gnu-emacs@gnu.org; Thu, 11 Nov 2021 10:10:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mlBiD-0006tF-Pz for bug-gnu-emacs@gnu.org; Thu, 11 Nov 2021 10:10:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 11 Nov 2021 15:10: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.163664338726459 (code B ref 50572); Thu, 11 Nov 2021 15:10:01 +0000 Original-Received: (at 50572) by debbugs.gnu.org; 11 Nov 2021 15:09:47 +0000 Original-Received: from localhost ([127.0.0.1]:41955 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mlBhz-0006sh-8I for submit@debbugs.gnu.org; Thu, 11 Nov 2021 10:09:47 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:59086) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mlBhw-0006sR-Eu for 50572@debbugs.gnu.org; Thu, 11 Nov 2021 10:09:45 -0500 Original-Received: from [2001:470:142:3::e] (port=56876 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 1mlBhr-0007yP-5o; Thu, 11 Nov 2021 10:09:39 -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=6RaexD4vOE7e6A17PZdjZvcBwTcwReQfi6TpLYEcznc=; b=mTeE64hOQpEk VCzdX2ouhy+E9/tJKQhzAYYJpkeimOD9XMe4GlR7LjzLWKVaOXhyt5MR0vPx64nWo1GngY148v3l+ TBPMxmVr2cnfT3/aEexHDj1TnA16FVVr6RNIhNPYb6lR7joBERwS5XNZC94KCP8rZKZkgVZ7SVS31 qWO/sTxMe5yKI2Lt1J1yDYg6/2IWu49zWl89Ag8UzcLyjJRQNKaZi3JVCsSSLLrsXhtb+ZBGzZ1+J uAzuC2c1EbZ+qrptM7TbHA4I3+x7/dkQWVS5ygQkcWBo0JIDhP73VgTdHvdz/gzjb5FTjVd+IFDEE fOEzkLmhwlWFLEAMLjTaTw==; Original-Received: from [87.69.77.57] (port=2237 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 1mlBhq-0007Lp-MY; Thu, 11 Nov 2021 10:09:39 -0500 In-Reply-To: <87r1bm6fy5.fsf@gnus.org> (message from Lars Ingebrigtsen on Thu, 11 Nov 2021 13:21:22 +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:219643 Archived-At: > From: Lars Ingebrigtsen > Cc: dgutov@yandex.ru, 50572@debbugs.gnu.org, andrewjmoreton@gmail.com, > manuel@ledu-giraud.fr > Date: Thu, 11 Nov 2021 13:21:22 +0100 > > Eli Zaretskii writes: > > > If we will require the caller to provide an absolute file name, then > > why not call expand-file-name internally? > > We don't require that. It's a perfectly valid thing to wonder (for > instance) "what's the last two elements in this directory structure I > have here", and the answer is: > > (file-name-split "foo/bar") => ("foo" "bar") We were mis-communicating: I was talking about a function that determines which file is "deeper" in the filesystem.