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: Fri, 12 Nov 2021 16:41:54 +0100 Message-ID: <877dddqt31.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> <878rxzszl8.fsf@elite.giraud> <877ddiuhv7.fsf@gnus.org> <87y25x3e6g.fsf@elite.giraud> <87a6icoqkm.fsf@gnus.org> <87k0hditw7.fsf@elite.giraud> <83a6i9ziiq.fsf@gnu.org> <87fss1quka.fsf@elite.giraud> <83y25txuww.fsf@gnu.org> 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="17033"; 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, larsi@gnus.org, andrewjmoreton@gmail.com, dgutov@yandex.ru To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Nov 12 16:42:18 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 1mlYgz-0004DB-KH for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 12 Nov 2021 16:42:17 +0100 Original-Received: from localhost ([::1]:59582 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mlYgy-000722-IV for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 12 Nov 2021 10:42:16 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:36938) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mlYgk-00070j-Qk for bug-gnu-emacs@gnu.org; Fri, 12 Nov 2021 10:42:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34237) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mlYgj-0003DG-UB for bug-gnu-emacs@gnu.org; Fri, 12 Nov 2021 10:42:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mlYgj-0005za-RZ for bug-gnu-emacs@gnu.org; Fri, 12 Nov 2021 10:42: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: Fri, 12 Nov 2021 15:42: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.163673172123027 (code B ref 50572); Fri, 12 Nov 2021 15:42:01 +0000 Original-Received: (at 50572) by debbugs.gnu.org; 12 Nov 2021 15:42:01 +0000 Original-Received: from localhost ([127.0.0.1]:45783 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mlYgi-0005zL-Pf for submit@debbugs.gnu.org; Fri, 12 Nov 2021 10:42:00 -0500 Original-Received: from ledu-giraud.fr ([51.159.28.247]:25562) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mlYgf-0005zA-JF for 50572@debbugs.gnu.org; Fri, 12 Nov 2021 10:41:59 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=rsa; bh=kfp5unBDedLhPL6i wFH4qviXeFnU/xv+vnLU9Qqkpjw=; h=in-reply-to:date:references:subject: cc:to:from; d=ledu-giraud.fr; b=drcuS6kDR5uft83PE1nax5NLAjfAgvg7WaOCvy cZwU/VzRt3jOnDBUMDPAAcTlT6orVyhardMJtwUhIIlbv5zSL8cScTJRCn7hyg6Eg7TPsq BPhMlGhtg6ixsLPGb4Uyjh++C+9fLw50YkAlyVjTpPams1xixEHxaG+z196MYtGNFBG0qn NqphsVse6kCrji5tkpWiFc5wlRSv9V2BfKNr25EbRhKAF1G6IjVEont4NmrLlL9msNKY0p OFq/NA9Y6dz+PkfBfysAI6ZIBm+nQTkiTLmipQ8tOXGfp+Omq1YAQzAP73N0b7nb6r1YL+ lNnXz/b19ljlrTZqlO37eJYA== Original-Received: from elite.giraud (82-65-148-221.subs.proxad.net [82.65.148.221]) by ledu-giraud.fr (OpenSMTPD) with ESMTPSA id 8383def5 (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); Fri, 12 Nov 2021 16:41:55 +0100 (CET) In-Reply-To: <83y25txuww.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 12 Nov 2021 17:20:31 +0200") 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:219778 Archived-At: Eli Zaretskii writes: > Either "file-name" or "dir-name", or something along those lines, > should do, I think. We are talking about variable names, yes? Yes, of the two hard problems of computer science :-) [...] > Maybe I'm missing something, but why not test the value for being a > string, and only call expand-file-name if it is? =F0=9F=91=8D --=20 Manuel Giraud