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#58525: 28.1: `vc-dir' (key sequence: C-x v d) fails when used with a CVS repository Date: Tue, 18 Oct 2022 02:10:01 +0300 Message-ID: References: <2011444375.1250404.1665768998367.ref@mail.yahoo.com> <2011444375.1250404.1665768998367@mail.yahoo.com> <83wn926yqv.fsf@gnu.org> <1786309111.1655909.1665958001583@mail.yahoo.com> <837d0z3rwh.fsf@gnu.org> <9490cc5d-5d0f-4ef6-d00b-0629853aaa22@yandex.ru> <83pmeq1k9e.fsf@gnu.org> <259751090.1922936.1666028587272@mail.yahoo.com> 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="3469"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.2 Cc: "58525@debbugs.gnu.org" <58525@debbugs.gnu.org> To: Mark Harig , "eliz@gnu.org" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Oct 18 01:11:44 2022 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 1okZGp-0000h9-CR for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 18 Oct 2022 01:11:43 +0200 Original-Received: from localhost ([::1]:40088 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1okZGn-0005el-UG for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 17 Oct 2022 19:11:41 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47570) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1okZGA-0005eZ-U2 for bug-gnu-emacs@gnu.org; Mon, 17 Oct 2022 19:11:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:51347) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1okZGA-0003fP-HE for bug-gnu-emacs@gnu.org; Mon, 17 Oct 2022 19:11:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1okZGA-0008H0-AT for bug-gnu-emacs@gnu.org; Mon, 17 Oct 2022 19:11:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 17 Oct 2022 23:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58525 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 58525-submit@debbugs.gnu.org id=B58525.166604821131721 (code B ref 58525); Mon, 17 Oct 2022 23:11:02 +0000 Original-Received: (at 58525) by debbugs.gnu.org; 17 Oct 2022 23:10:11 +0000 Original-Received: from localhost ([127.0.0.1]:50425 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1okZFK-0008FZ-LE for submit@debbugs.gnu.org; Mon, 17 Oct 2022 19:10:10 -0400 Original-Received: from mail-wr1-f49.google.com ([209.85.221.49]:40885) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1okZFJ-0008FJ-7b for 58525@debbugs.gnu.org; Mon, 17 Oct 2022 19:10:09 -0400 Original-Received: by mail-wr1-f49.google.com with SMTP id w18so20842564wro.7 for <58525@debbugs.gnu.org>; Mon, 17 Oct 2022 16:10:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :sender:from:to:cc:subject:date:message-id:reply-to; bh=HATdhe/gBdcbpWxdJEaJL+MPhjVPc1BPGVXyJgrJZZs=; b=PwWtzL7Z7H0BJx8reO45r0O44/MebHScLDA2HiGbc9axYYoKBEM4vHnBqevBC/E7j0 wgc+BrAkmZLcw4N90E35Ud0GkFAQLdEdnuKXX4aDLcTD7uNd6HbmwE2Y9uTXtkZUEcgD aTacgo8tz48CgP9yTWH9JSKWj7PysleJ+CuTDtntXbubUrDDvvwhHEAIRWfFRbjXXc58 OSmA1+dAAcOIJGYKc3+y/SNTBXvjjo/d+Afeul7P9+hH7T6+7d6P1X0jCVpHxEoG28El semXqUwRw07bcBhre47jwxtUM9v5NrrFnYqQoGV+22chfLrc3Mx9nvxHrQgnpCmdGWVK BhLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :sender:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=HATdhe/gBdcbpWxdJEaJL+MPhjVPc1BPGVXyJgrJZZs=; b=cxs8r5maXy6ka2bWLY+u+aLdju331A5op59Ro1J3JeY77e6+/04iu4B8shEv477uRS jdd+cJCIVrrCqFXH/a5hhryAr3pXijAWvnJdh0I+ERXGDf87phxmEWDjNmG/MZIqxfn5 j2TIOoa27epz9qf5ht1A8hCkLu91nh1YBxgzILVwb1LH5KJWwfDx0OSLCmqXNoITu679 EF8oO5D2yCdnxcd9Eloh4rWqZVKwUm8qBHZfI2uINJTBepcnwCrvqd8/ciaLIn3fvgZt +/zI/7Gnx17DCoauhnaf+XUIk8iIYApCwNB2a0nd/uG/io9Ri6ig0ikh71Rv7joWuM9c talg== X-Gm-Message-State: ACrzQf0zkZWiZtXd/YkJ/KPJCeZU/x3IGJTl+SxoJM0J+tt89mTs6BCI yGOtr5E8mcaZf8iQlhcCDFM= X-Google-Smtp-Source: AMsMyM5t+QK/JJYZyGbuBnrECCJTvKrA8c7o+9RcLTtYZS6YvhuHUVM5Tmf3tPueoHnv/g8XVqUZdg== X-Received: by 2002:a05:6000:18a1:b0:230:f9fb:c83 with SMTP id b1-20020a05600018a100b00230f9fb0c83mr60256wri.329.1666048203145; Mon, 17 Oct 2022 16:10:03 -0700 (PDT) Original-Received: from [192.168.0.6] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id v9-20020a05600c444900b003c6f8d30e40sm4170930wmn.31.2022.10.17.16.10.02 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 17 Oct 2022 16:10:02 -0700 (PDT) Content-Language: en-US In-Reply-To: <259751090.1922936.1666028587272@mail.yahoo.com> 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:245760 Archived-At: On 17.10.2022 20:43, Mark Harig via Bug reports for GNU Emacs, the Swiss army knife of text editors wrote: > So, after finding the CVS backend, the `mapcar' expression, above, > continues and checks for a Git backend, which it finds in the directory > that contains tmp3/project1, namely, ~, the home directory. Because > it found ~/.git/, it sets the variable `dirs' to an erroneous value and > later logic fails because of this. > > What is the solution to this problem? What should the VC > functions (not just `vc-dir') do when they find more than one VC > backend indicator in the directory tree? Should it issue an > error indicating more than one VC backend detected, (since files > cannot be under the control of multiple VC backends)? Or, should > it stop after the "most local" VC backend is found and attempt to > use that? It tries to use the most specific one, by using the sorting logic at the end of vc-responsible-backend. That was added in https://debbugs.gnu.org/42966, which should have made it into Emacs 28.1. I'm not sure why your CVS value in that list is t and not a string: that should have been fixed in Emacs 28.1 as well, in revision bc636515884530f0cab6f. There was a further fix, though (regarding expanded vs abbreviated file names) which is only available on master (bug#57777). But I'm not sure if that comes into play here. Anyway, are you really using Emacs 28.1? If not, try that, if yes: could you try building Emacs from master? And seeing whether it fixes your problem.