From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov 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 03:29:23 +0300 Message-ID: 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; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6066"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 Cc: 50572@debbugs.gnu.org, Andy Moreton , Manuel Giraud To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Nov 10 01:30:16 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 1mkbVH-0001Ko-BG for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 10 Nov 2021 01:30:15 +0100 Original-Received: from localhost ([::1]:58560 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mkbVF-0008Li-KJ for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 09 Nov 2021 19:30:13 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:50794) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mkbV4-0008Js-Jz for bug-gnu-emacs@gnu.org; Tue, 09 Nov 2021 19:30:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53004) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mkbV4-0001iU-AI for bug-gnu-emacs@gnu.org; Tue, 09 Nov 2021 19:30:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mkbV4-0005Qp-4P for bug-gnu-emacs@gnu.org; Tue, 09 Nov 2021 19:30:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 10 Nov 2021 00: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.163650418520836 (code B ref 50572); Wed, 10 Nov 2021 00:30:02 +0000 Original-Received: (at 50572) by debbugs.gnu.org; 10 Nov 2021 00:29:45 +0000 Original-Received: from localhost ([127.0.0.1]:36317 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mkbUn-0005Q0-50 for submit@debbugs.gnu.org; Tue, 09 Nov 2021 19:29:45 -0500 Original-Received: from mail-ed1-f44.google.com ([209.85.208.44]:34330) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mkbUl-0005Pk-1K for 50572@debbugs.gnu.org; Tue, 09 Nov 2021 19:29:43 -0500 Original-Received: by mail-ed1-f44.google.com with SMTP id x15so3484875edv.1 for <50572@debbugs.gnu.org>; Tue, 09 Nov 2021 16:29:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=Hvqcd6fpr0otil8RM5pWgvBuxRxfR8Mib/BoMgU+Nw8=; b=RtMxdYPVG6qWwcDsY52Jey8b4oMDjuiV/4hnpeVahvubZ+v9TZU8zR5wkfykGYJmSv OpMR0nmZggofnmz3jD7cas5t1FKGGHHrdOygobSJaVPWb2qr6I7Ul66C1SBY5LQCFuFp eqs4xgl89ImxkkDk9+AajhWi36m2TYs525icfmps3NqjppSgJLIk1A8Td2BRRsfihQF7 9mgVPRm5Vz91P97+ZAeztbYTpFvaDZpzABeMxq2Ij7ScSRcPGE1q+/R63qqSrKkF3rtX berKtuOy4IMVU8z/s9Ihurn8BA5KOLuFptsB+rUvTFoUAiAyRPqeaEg8HvfY2usZ3MYe blmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=Hvqcd6fpr0otil8RM5pWgvBuxRxfR8Mib/BoMgU+Nw8=; b=chF0V5+q3LfzPGyndIhKUjmpQfqNxvZ4SkRRgkIo4nhJeFm6HIRURhDUmt6E3KjKNQ 64ReiFwVq8/58ROMibxduzbG+lQqVLxvwXdxzC4LxITn4nEres+YkkAA3XcoS+kIdF/s LrQm1Rw3SMDJXUCzddO0KOFr5G2paJIR5kbQdw0jO1hFmChhfnTT34GkxyQ5ykedV/HG O7Yxag/MpgwksfjNZYH+t4W4jDcyM+oaOXcWbXVu5/x+hqTnPFNfaYfnHA/olthejOa5 gA7aGcEKhoiNb7Y4cZtYJkKlyV4+xMwgDslUUUavmrXsvVzvURcSj0qHFVNG/0SdU/ZT IatQ== X-Gm-Message-State: AOAM532bbxHsiLCz8XF8YfNHicW3E/eHFrAIt/TkK0A0WRyM4dcc3Hh+ IUl8MUmHCJDZ8m39e3kretQ= X-Google-Smtp-Source: ABdhPJy9JqBsfL/A6rCy9stuDdXKzOPNXZzVx02LgVeQCgvLLf4QNR36Z3p/xruwwbvlXZUeKv9Cug== X-Received: by 2002:a17:906:26da:: with SMTP id u26mr15469370ejc.315.1636504177080; Tue, 09 Nov 2021 16:29:37 -0800 (PST) Original-Received: from [10.11.0.8] ([31.171.154.211]) by smtp.googlemail.com with ESMTPSA id z9sm9136561edb.50.2021.11.09.16.29.35 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 09 Nov 2021 16:29:36 -0800 (PST) In-Reply-To: <87bl2slv3j.fsf@gnus.org> Content-Language: en-US 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:219492 Archived-At: On 10.11.2021 03:20, Lars Ingebrigtsen wrote: > What is the situation with path separators on Windows, anyway? If it > uses "/", too, then this function isn't necessary -- split-string will > do the job just as well. 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? This works much faster in the same 'sudo' session: (split-string (expand-file-name buffer-file-name) "/")