From debbugs-submit-bounces@debbugs.gnu.org Fri Nov 29 21:35:38 2024 Received: (at submit) by debbugs.gnu.org; 30 Nov 2024 02:35:38 +0000 Received: from localhost ([127.0.0.1]:44961 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tHDKc-0000fR-6Z for submit@debbugs.gnu.org; Fri, 29 Nov 2024 21:35:38 -0500 Received: from lists.gnu.org ([209.51.188.17]:42866) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tHDKY-0000fF-AY for submit@debbugs.gnu.org; Fri, 29 Nov 2024 21:35:35 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tHDKX-0003HE-QW for bug-gnu-emacs@gnu.org; Fri, 29 Nov 2024 21:35:33 -0500 Received: from mail-yb1-xb2e.google.com ([2607:f8b0:4864:20::b2e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tHDKW-000247-DE for bug-gnu-emacs@gnu.org; Fri, 29 Nov 2024 21:35:33 -0500 Received: by mail-yb1-xb2e.google.com with SMTP id 3f1490d57ef6-e396c98af45so2204080276.1 for ; Fri, 29 Nov 2024 18:35:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1732934131; x=1733538931; darn=gnu.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=/ghusxQBTVi3AOmLNuQ4KQB21evB4FQc57mLJn/TtLo=; b=ZnIa4bICrSR+d1LUKwScvlRJeDIy2tttz0VkL9q6ymLUyOaAJ30iQcvhTCyc+ijiU/ u/kr4ezrzNNK7d1o+I/ClH9AfCPo0ZWGpLODQZJO7hcdBhXU2tRhwKXhd0zc9mQfFdmR 8xWoKXFhYxXSdg9vXGGf4V/kOsf6rpiIaAofwyFfFmZqecMUIryMtpspD/QFlURWkkrx C7D6JjwIPnbHHcCWlbzwU3YC7XhAzJlP3jihnZbUGPyekYwR3HCSbhTeVeJaAzBOavnG UJCXW8XkWgjzFZk0BYWt102Y+0DT9C60NEYiSmxW8R+Cm5cydTcY5w7uEGgQ9ScHb1Nm Ce5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732934131; x=1733538931; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=/ghusxQBTVi3AOmLNuQ4KQB21evB4FQc57mLJn/TtLo=; b=f+yKU6qvZI7EbNRDqfRvB5RGd8RoNNM3x3mkWLUBL9Xnx9OGcyst+UolQutMzLsDGv FH/0k9PV0ZDEqwNEZqxVB6Itsn2PYjxNnlEBHyFSpF54v/hq1YMC27bj31VQgN8crFYZ 99AJ7KmszFQHEQKtXB2UiyeemKv0HIBcf4cxv4vkuuXCvOaJKbATkgWw4Clhs8IYZwVr dbywVkfLoPpOtEgqynit2fCeuQo6lGbEYpWqj/MexCHlDkp2eV5E+9mrCHRbNqpqy6tI R8AfFYTMtqdFJmGfXEm7/GcExiss6rNwefKZr6YvJwkw7TcPv6rwMscKPDJpjVzl6bN9 hnig== X-Gm-Message-State: AOJu0Yw4Sj2fFydwfoyogOGORMa9DxEP1vSAWvQw/qicpQd4U0va7ecc btXo/TrEdU6vIZ2FLijrMEwoepGdQLlF3t0PGxHzQIkACSD89cTO2V8ebtonLHJxnWIWn9hv5lX pw+As/BrZQsuqbG1FefQnlHIHRFJH7Avj X-Gm-Gg: ASbGnctuaBmtzGG/o/QhVi97GSHVvrZLdfyBtq3D/pwaTgQXgjc6suNViVNMBdw7fRs flChpcoDmLlpFVtsX2jAkdguKE1eJx6k= X-Google-Smtp-Source: AGHT+IFVcZtcsjDR9JQwMhWaJYJ9lOk8jeFeJO4AjlZB3nzXDrPGvdJgSrkXeBIzF/rKG1RfI3dtUUCPbKgXzLux/zg= X-Received: by 2002:a05:6902:2487:b0:e39:940e:3252 with SMTP id 3f1490d57ef6-e39940e33femr1896125276.52.1732934130874; Fri, 29 Nov 2024 18:35:30 -0800 (PST) MIME-Version: 1.0 From: Chu Maeda Date: Sat, 30 Nov 2024 10:35:19 +0800 Message-ID: Subject: Problem of finding the project root when working on submodules of a submodule To: bug-gnu-emacs@gnu.org Content-Type: multipart/alternative; boundary="0000000000004a4b090628182bc0" Received-SPF: pass client-ip=2607:f8b0:4864:20::b2e; envelope-from=maedaqu@gmail.com; helo=mail-yb1-xb2e.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) --0000000000004a4b090628182bc0 Content-Type: text/plain; charset="UTF-8" Assume that there's a git repository A. A has a submodule B. B has a submodule C. When I'm working on C, the current implementation won't choose A as the project root even though the project-vc-merge-submodules is non-nil. I can customize project-find-functions to find the right project root as a workaround, but I think this might be a bug need to be fixed. --0000000000004a4b090628182bc0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Assume that there's a git repository A. A has a submod= ule B. B has a submodule C.

When I'm working on C, t= he current implementation won't choose A as the project root even thoug= h the project-vc-merge-submodules is non-nil.

I ca= n customize project-find-functions to find the right project root as a work= around, but I think this might be a bug need to be fixed.
--0000000000004a4b090628182bc0-- From debbugs-submit-bounces@debbugs.gnu.org Sun Dec 01 21:14:13 2024 Received: (at 74614) by debbugs.gnu.org; 2 Dec 2024 02:14:13 +0000 Received: from localhost ([127.0.0.1]:53667 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tHvwz-0007Oz-4x for submit@debbugs.gnu.org; Sun, 01 Dec 2024 21:14:13 -0500 Received: from fhigh-a4-smtp.messagingengine.com ([103.168.172.155]:60869) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tHvww-0007Oi-UB for 74614@debbugs.gnu.org; Sun, 01 Dec 2024 21:14:11 -0500 Received: from phl-compute-08.internal (phl-compute-08.phl.internal [10.202.2.48]) by mailfhigh.phl.internal (Postfix) with ESMTP id C8FE311400DD; Sun, 1 Dec 2024 21:14:05 -0500 (EST) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-08.internal (MEProxy); Sun, 01 Dec 2024 21:14:05 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc :content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm3; t=1733105645; x=1733192045; bh=GkcKUSpsNMB+bF84YRApj9/Ae1TdRncZ8NR1YhdatP4=; b= SMtDVHTY5wMbnuRa1YlFUkn7KuWGtZXQ/e/LwuxsfltxkLAoQID5/BRH/o6xog/C v20dwKZIWkFzuPjCwHbpt9ytUx0ZCxlEm9EthYDL2U/VcZkHo2Aw336L94RKXhP3 M51OCXe7ul/Fs9VAJXddZzripFXQ5q7y/639VGPVKsKOGB2q45EHEBxSvGXGHd2L AAs0nqdEZ8mAEJ9itBMiTHc67NxdOkhVWNP0/PNn5yiaHnGDAbyTPTePjlu0kWLV EeLKQhFbRtW+c9LTcGo7zSRQipNI45Tl5oX/5eNokEhIID861Tohf8KCTMLYms/r s/8OpCZ619evA2GDTUxFlg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; t=1733105645; x=1733192045; bh=G kcKUSpsNMB+bF84YRApj9/Ae1TdRncZ8NR1YhdatP4=; b=qBLi6ca642Zznpn9W KfRIkDq5qJZtlTC2JFJ5ssQ9wzvFJtz8dq9gozwT+sFs/AUrcTQ2ts2awUftd2pb jxBv8av0e2uf2EkGhZlIpe25ux/1ZG5Q9msoJk7upDdYR3nPTMW8oiwpuuDva1sE yYHSZVOlwp/o7XcHmRRQHgLimxLH5wBD/NDSxCBAm7BsxTYga1wM8lVmYUxBpYgT HKlOFYOaoSK4QZz3mi32bEplEtFbeMNajKm0ubgNG11E/LbwXzmAlOdC7e4Tz+Mn YsSTDVUriolXXCba6rCQScf446CjrLgfc1iEnRJpfSftIXC07/UOYucO8aosOlw3 x2PHA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrheekgdeggecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdpuffr tefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnth hsucdlqddutddtmdenucfjughrpefkffggfgfuvfhfhfgjtgfgsehtjeertddtvdejnecu hfhrohhmpeffmhhithhrhicuifhuthhovhcuoegumhhithhrhiesghhuthhovhdruggvvh eqnecuggftrfgrthhtvghrnheptdfhuedvtdevleegueelvedvjeevheffveevhedvueff tdefhfdvueeggfetgfdtnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrg hilhhfrhhomhepughmihhtrhihsehguhhtohhvrdguvghvpdhnsggprhgtphhtthhopedv pdhmohguvgepshhmthhpohhuthdprhgtphhtthhopehmrggvuggrqhhusehgmhgrihhlrd gtohhmpdhrtghpthhtohepjeegiedugeesuggvsggsuhhgshdrghhnuhdrohhrgh X-ME-Proxy: Feedback-ID: i07de48aa:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 1 Dec 2024 21:14:04 -0500 (EST) Message-ID: <45fb1453-ca9f-47c2-bd85-d7be860aa840@gutov.dev> Date: Mon, 2 Dec 2024 04:14:02 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: bug#74614: Problem of finding the project root when working on submodules of a submodule To: Chu Maeda , 74614@debbugs.gnu.org References: Content-Language: en-US From: Dmitry Gutov In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 74614 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi! On 30/11/2024 04:35, Chu Maeda wrote: > Assume that there's a git repository A. A has a submodule B. B has a > submodule C. > > When I'm working on C, the current implementation won't choose A as the > project root even though the project-vc-merge-submodules is non-nil. > > I can customize project-find-functions to find the right project root as > a workaround, but I think this might be a bug need to be fixed. Could you post a sequence of commands one can/should use to recreate such a project? From debbugs-submit-bounces@debbugs.gnu.org Mon Dec 02 00:16:21 2024 Received: (at 74614) by debbugs.gnu.org; 2 Dec 2024 05:16:21 +0000 Received: from localhost ([127.0.0.1]:53899 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tHynF-0008Fv-1m for submit@debbugs.gnu.org; Mon, 02 Dec 2024 00:16:21 -0500 Received: from mail-yb1-f181.google.com ([209.85.219.181]:55768) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tHynC-0008Fd-Ow for 74614@debbugs.gnu.org; Mon, 02 Dec 2024 00:16:19 -0500 Received: by mail-yb1-f181.google.com with SMTP id 3f1490d57ef6-e3824e1adcdso3021714276.3 for <74614@debbugs.gnu.org>; Sun, 01 Dec 2024 21:16:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1733116513; x=1733721313; darn=debbugs.gnu.org; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=Cka+V2wYbe138GqBa0rf1KUh6XdBSU4k+ay8Q2PhAiQ=; b=dRI5G2gB0n8hFsYInIxEnEcVFllYBnuviltllKYTDRv+0XXxeO8qtKfCjwxtdRcfur /MjDFiwZ9rMkNguevfzcm+tuwjswQBWUOeiOUZsNvXvPI7uZeTCTPNqa8cqGkWytyzlN /nC0ADNp5fb4olrtLYJ18U8dRgi8jEaBXDh/Voufd9QIQ9hf/7tXryj0qVviZQX6W/Ay 81oTtKT4nkYlik0oHJrrbMPuzHmYgiDTEK7qcZonP+e1odAn47H9QRbyhaxQyy+wqKEB jWNYOcfSr5PyBLGf3kPcY5djiZUMA3Q4l54xcKHh9LgbdYextHvd+ufguoaA/Kc3iVbE fmUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733116513; x=1733721313; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Cka+V2wYbe138GqBa0rf1KUh6XdBSU4k+ay8Q2PhAiQ=; b=KzzeOGYsRNau8hWnugZ3HHWcYgJmf6wy3/nXof/+aEjqg6/JcjPMqmuJdUaWP7lLx+ itn26RdaQdMktbTOQiUx/2Q8hVbXX/rjqbkT6dRoXuLu4g9z8ylJi40uqWHfiNjU4zGY ZP1d4yLeaqBRDK7DWgFEE+/WMpoCXrjy06f0GgYHFd5+CJh2YwX3fUY9oEXF4L91STwH 8k4ky/gn1t3SzsBnNDNAnU3gnlItRx6o7AUYNdOZ6D3O6AGDIgewsvtUxeMYebQDOTAC WVLGKClizH1GzZFJR0xU2MAthnWK1EIECAzdZQjvEJtDotORLXNYSvAGd8Fc7w6+5fes NJ6g== X-Gm-Message-State: AOJu0YzoHx18I0UkA494MZC6YRHTyAP/2LbO28Xu5zKthFfiQI71QoN2 hWMDQbH453ZA5VyTLriaAyh9hDN1pnfzp++0zHtg/vRZfjExpPHPWP5AEmXXHhd8Q0IkWUiBc0K Z2ClfnNHRy/IiIco8E/h64UjD7RR21QGY X-Gm-Gg: ASbGncvLi6VVqzOmBUQng8R1J8g8vgPCMWFUIOSIjuU5HD+chbWBpbk8P8XnGJmYrlR MeshAF4F5jDXi0Jd8X6rmEX4ghRX+T7E= X-Google-Smtp-Source: AGHT+IETt1sABLjDFADaRXEcs3m9TVoqxlmd0KKSSSuuq7bs2rRejCJIMYDODn9QowGQ9dCZe9WOjldGD0BBvIwJL6U= X-Received: by 2002:a05:6902:2409:b0:e39:787e:d9a with SMTP id 3f1490d57ef6-e39787e0f38mr11403901276.53.1733116512486; Sun, 01 Dec 2024 21:15:12 -0800 (PST) MIME-Version: 1.0 References: <45fb1453-ca9f-47c2-bd85-d7be860aa840@gutov.dev> In-Reply-To: From: Chu Maeda Date: Mon, 2 Dec 2024 13:15:01 +0800 Message-ID: Subject: Fwd: bug#74614: Problem of finding the project root when working on submodules of a submodule To: 74614@debbugs.gnu.org Content-Type: multipart/alternative; boundary="00000000000014d221062842a2f9" X-Spam-Score: 0.7 (/) X-Debbugs-Envelope-To: 74614 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.3 (/) --00000000000014d221062842a2f9 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable ---------- Forwarded message --------- =E5=8F=91=E4=BB=B6=E4=BA=BA=EF=BC=9A Chu Maeda Date: 2024=E5=B9=B412=E6=9C=882=E6=97=A5=E5=91=A8=E4=B8=80 13:13 Subject: Re: bug#74614: Problem of finding the project root when working on submodules of a submodule To: Dmitry Gutov Of course, I created such a project on github, you could clone it by command: git clone --recurse-submodules https://github.com/chu-mirror/A.git The problem is clear when you open the file A/B/C/README.md, and run command project-find-file(C-x p f by default) --00000000000014d221062842a2f9 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


<= div dir=3D"ltr" class=3D"gmail_attr">---------- Forwarded message ---------=
=E5=8F=91=E4=BB=B6=E4=BA=BA=EF=BC=9A Chu Maeda <maedaqu@gmail.com>
Date: 2024=E5=B9=B412= =E6=9C=882=E6=97=A5=E5=91=A8=E4=B8=80 13:13
Subject: Re: bug#74614: Prob= lem of finding the project root when working on submodules of a submoduleTo: Dmitry Gutov <dmitry@gutov.dev= >


Of course, I created such a proj= ect on github, you could clone it by command:

git clone = --recurse-submodules https://github.com/chu-mirror/A.git

The problem is clear when you open the file A/B/C/README.md, and run = command project-find-file(C-x p f by default)
--00000000000014d221062842a2f9-- From debbugs-submit-bounces@debbugs.gnu.org Mon Dec 02 21:15:12 2024 Received: (at 74614) by debbugs.gnu.org; 3 Dec 2024 02:15:12 +0000 Received: from localhost ([127.0.0.1]:57269 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tIIRT-0006W4-R0 for submit@debbugs.gnu.org; Mon, 02 Dec 2024 21:15:12 -0500 Received: from fout-b5-smtp.messagingengine.com ([202.12.124.148]:39799) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tIIRQ-0006QQ-CS for 74614@debbugs.gnu.org; Mon, 02 Dec 2024 21:15:09 -0500 Received: from phl-compute-05.internal (phl-compute-05.phl.internal [10.202.2.45]) by mailfout.stl.internal (Postfix) with ESMTP id D8C521140091; Mon, 2 Dec 2024 21:15:02 -0500 (EST) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-05.internal (MEProxy); Mon, 02 Dec 2024 21:15:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc :content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm3; t=1733192102; x=1733278502; bh=wSkugV0as3+YGWiTiXIVoGc6NkndGX0VB6Z6ds04Blw=; b= hldK4aY4YjWM3C9TPqhdrANjniGN9QkQeZlrW+LmSX3/YEIS4DANU7WBSgENETI4 aJVX8SkR8PfIVbqjzW5qNSQXfMieek9zLGSaqLvD+qB0k34rMRXsZm6KpKVkqEJN y3D39gRbFFKtB3qkQMF/7WFo30WS+DJg2jJH/gMZqTKZs6EpfRXFf7QBus/uuRoE 6rFRa5DGflgUm9XPc/kWTtQo08Q23pZ3H1nhKxrPti6eynJ9HT5NyMghZkp/2Ptw tQBMysULV4J69RVjOkKm2HW7B6BE626pRC2UMeEHrkZikDnnZCh57260ZZz9WJBo ak3d0jGK4StDc0j/gcj9CA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; t=1733192102; x=1733278502; bh=w SkugV0as3+YGWiTiXIVoGc6NkndGX0VB6Z6ds04Blw=; b=fJ3SGTW5gfMWxRS9w T85y05cMIPp/U70ORhgGO2HV3hjm3yPwyf0ZhkkjBCokS/J5hQdTKnio+pw81UV9 OHbX7eKP/hjVOsxD+AGFLFEFVAOCGTG66PSIqaMWJDMPo+JtgtNBacaCYNdv4PTm CNC7fm77jvFpuNFNSB244PfnfAmBXYG6gzq91rLxPQvupgZNuCDAQqNB+99prIKG pjx4SDKKoHNRXk/XyblCOrZkONb81lDuYxp5aV3kHyuGEx3ut7RMewagO0/gbTEr e2i90Be70PXGMrDLlencwG/lzRNsvI6JHyeY7rJfevep3CjsyeUOv7o7FYiUt+bH icagw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddriedtgdegvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdpuffr tefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnth hsucdlqddutddtmdenucfjughrpefkffggfgfuvfhfhfgjtgfgsehtjeertddtvdejnecu hfhrohhmpeffmhhithhrhicuifhuthhovhcuoegumhhithhrhiesghhuthhovhdruggvvh eqnecuggftrfgrthhtvghrnhephfeftdfhudejleelfeekjedtheefjedvlefgieeuteek heeuffekgfdviefghfdtnecuffhomhgrihhnpehgihhthhhusgdrtghomhenucevlhhush htvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegumhhithhrhiesghhu thhovhdruggvvhdpnhgspghrtghpthhtohepvddpmhhouggvpehsmhhtphhouhhtpdhrtg hpthhtohepmhgrvggurghquhesghhmrghilhdrtghomhdprhgtphhtthhopeejgeeiudeg seguvggssghughhsrdhgnhhurdhorhhg X-ME-Proxy: Feedback-ID: i07de48aa:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 2 Dec 2024 21:15:01 -0500 (EST) Message-ID: <61ff7773-b4f6-4e22-9f36-10adcc13fc29@gutov.dev> Date: Tue, 3 Dec 2024 04:14:58 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: bug#74614: Fwd: bug#74614: Problem of finding the project root when working on submodules of a submodule To: Chu Maeda , 74614@debbugs.gnu.org References: <45fb1453-ca9f-47c2-bd85-d7be860aa840@gutov.dev> Content-Language: en-US From: Dmitry Gutov In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 74614 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On 02/12/2024 07:15, Chu Maeda wrote: > > Of course, I created such a project on github, you could clone it by > command: > > git clone --recurse-submodules https://github.com/chu-mirror/A.git > > > The problem is clear when you open the file A/B/C/README.md, and run > command project-find-file(C-x p f by default) Thanks! It seems we should switch from checking for modules once to doing it in a loop. Try this out: diff --git a/lisp/progmodes/project.el b/lisp/progmodes/project.el index cf1c94a6d20..3cc063a5d99 100644 --- a/lisp/progmodes/project.el +++ b/lisp/progmodes/project.el @@ -591,7 +591,7 @@ project-try-vc--search last-matches)) vc-handled-backends)) project) - (when (and + (while (and (eq backend 'Git) (project--vc-merge-submodules-p root) (project--submodule-p root)) Note you might need to restart Emacs after applying the patch, because the directory->project relation is currently cached until restart. From debbugs-submit-bounces@debbugs.gnu.org Mon Dec 02 21:26:28 2024 Received: (at 74614) by debbugs.gnu.org; 3 Dec 2024 02:26:28 +0000 Received: from localhost ([127.0.0.1]:57294 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tIIcO-00072j-0w for submit@debbugs.gnu.org; Mon, 02 Dec 2024 21:26:28 -0500 Received: from mail-yb1-f177.google.com ([209.85.219.177]:51543) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tIIcM-00072Z-5M for 74614@debbugs.gnu.org; Mon, 02 Dec 2024 21:26:26 -0500 Received: by mail-yb1-f177.google.com with SMTP id 3f1490d57ef6-e3984b1db09so3571074276.3 for <74614@debbugs.gnu.org>; Mon, 02 Dec 2024 18:26:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1733192725; x=1733797525; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=Mj4OZCxwUmO8i8JQRfNJo9ObZlhQlcbyl+6dMHV2vkA=; b=nZsuX5EP1pgWTVzWvkGlAB+yMzLdyIcOZldjn7JLCLlA8s7cEHuWWAAKw9lBAInDtg mxzVmFSfr4qb/cU+KO922H+aMYsc8byOksIHi10nFalt1Uh6/Rf+Pli3USVDBsocUOdL MGCHUPlkb0K0iZVEWlZCiff2WOuG03TjMs4CG69l2S871A7qemCp6YIKdDtQ9aCVUYjk jH/kjpbIhq9dc32/tqCuOdS/qgDG4DHB4Qv6cfuspmKw0WLdRt+iwafngRqQ4mmZt6iE gEdWa+tB18teMaU8NfAK2KT385Ya4FtRVfubwvb62e8WFxrvFJHSZwfX9h6T8b/KNiFF K9Iw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733192725; x=1733797525; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Mj4OZCxwUmO8i8JQRfNJo9ObZlhQlcbyl+6dMHV2vkA=; b=w0RY/3KIDO2fEZCM2GUG8QgVeqRNkHvo6puy59epC7xL8gE5K0PF4Db81y24IDo7I/ Iq6eW1Pw7/5c8cTtFsa1OhL60r5lKLFLyy3uyqV45z1Ar2bjb0s0rhpLISQLgO0kJFQ9 EY3PU2PSnzZzDo0311uivzg+zZYcxmYZXE081UtpUoTZgtsJEs6TVMBYKQ/CE4I4Gxot 53C51xRCdWmfuNpZ0XVEbgaFfQ84aE90F7SeNYHjTzRLWXUDcETEs31fOnwhcMtETYQq ZDp0mrvB0cMll0aLNZuSP08MRPpGwQJIONthkdthrLVRmgmd5jPxPwWYih9Qxnib1dob w/9Q== X-Gm-Message-State: AOJu0YwvxvpPCNxvNaG0R+H/3nKqFDfcpRFkK92Hxt5fd1NWbtY6bO4z ZnFc9jIzXWC5qTxBa3Sg2kw2H+j4VyvDtNmTzf7UjWMTGnlOE1v02L9ydB2988NiIi4vrtf0tWK xGHWJ5XbmaEDrc+72aho9A8iRKm6Te50bAP8= X-Gm-Gg: ASbGnctjiQws6TPHSgxMsLJajGLkT172O5JHgGGzdP+PVtx8qbFcxp5CC54PpzDZLce Rr2uWy8oOe4QTr288lXtZ/140KswRCII= X-Google-Smtp-Source: AGHT+IHl49CXWj2Y4S/UKIAaMk51YWRQH+7CaBz2zbyvUY8etwoFVQi9qvQajpLoD55F7aZEuzn9J2wdns54U9bgPkU= X-Received: by 2002:a05:6902:2512:b0:e39:9c32:2270 with SMTP id 3f1490d57ef6-e39d3d17f4emr933635276.16.1733192725512; Mon, 02 Dec 2024 18:25:25 -0800 (PST) MIME-Version: 1.0 References: <45fb1453-ca9f-47c2-bd85-d7be860aa840@gutov.dev> <61ff7773-b4f6-4e22-9f36-10adcc13fc29@gutov.dev> In-Reply-To: <61ff7773-b4f6-4e22-9f36-10adcc13fc29@gutov.dev> From: Chu Maeda Date: Tue, 3 Dec 2024 10:25:14 +0800 Message-ID: Subject: Re: bug#74614: Fwd: bug#74614: Problem of finding the project root when working on submodules of a submodule To: Dmitry Gutov Content-Type: multipart/alternative; boundary="000000000000bb4e9106285460d1" X-Spam-Score: 0.7 (/) X-Debbugs-Envelope-To: 74614 Cc: 74614@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.3 (/) --000000000000bb4e9106285460d1 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable It works. Thanks. Dmitry Gutov =E4=BA=8E2024=E5=B9=B412=E6=9C=883=E6=97=A5= =E5=91=A8=E4=BA=8C 10:15=E5=86=99=E9=81=93=EF=BC=9A > On 02/12/2024 07:15, Chu Maeda wrote: > > > > Of course, I created such a project on github, you could clone it by > > command: > > > > git clone --recurse-submodules https://github.com/chu-mirror/A.git > > > > > > The problem is clear when you open the file A/B/C/README.md, and run > > command project-find-file(C-x p f by default) > > Thanks! > > It seems we should switch from checking for modules once to doing it in > a loop. Try this out: > > diff --git a/lisp/progmodes/project.el b/lisp/progmodes/project.el > index cf1c94a6d20..3cc063a5d99 100644 > --- a/lisp/progmodes/project.el > +++ b/lisp/progmodes/project.el > @@ -591,7 +591,7 @@ project-try-vc--search > last-matches)) > vc-handled-backends)) > project) > - (when (and > + (while (and > (eq backend 'Git) > (project--vc-merge-submodules-p root) > (project--submodule-p root)) > > Note you might need to restart Emacs after applying the patch, because > the directory->project relation is currently cached until restart. > --000000000000bb4e9106285460d1 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
It works. Thanks.

Dmitry Gutov <dmitry@gutov.dev> =E4=BA=8E2024=E5= =B9=B412=E6=9C=883=E6=97=A5=E5=91=A8=E4=BA=8C 10:15=E5=86=99=E9=81=93=EF=BC= =9A
On 02/12/202= 4 07:15, Chu Maeda wrote:
>
> Of course, I created such a project on github, you could clone it by <= br> > command:
>
> git clone --recurse-submodules https://github.com/chu-mirror= /A.git
> <https://github.com/chu-mirror/A.git>
>
> The problem is clear when you open the file A/B/C/README.md, and run <= br> > command project-find-file(C-x p f by default)

Thanks!

It seems we should switch from checking for modules once to doing it in a loop. Try this out:

diff --git a/lisp/progmodes/project.el b/lisp/progmodes/project.el
index cf1c94a6d20..3cc063a5d99 100644
--- a/lisp/progmodes/project.el
+++ b/lisp/progmodes/project.el
@@ -591,7 +591,7 @@ project-try-vc--search
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0last-matches))
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0vc-handled-backends))
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0project)
-=C2=A0 =C2=A0 (when (and
+=C2=A0 =C2=A0 (while (and
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(eq backend 'Git)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(project--vc-merge-submodul= es-p root)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(project--submodule-p root)= )

Note you might need to restart Emacs after applying the patch, because
the directory->project relation is currently cached until restart.
--000000000000bb4e9106285460d1-- From debbugs-submit-bounces@debbugs.gnu.org Mon Dec 02 21:39:47 2024 Received: (at 74614-done) by debbugs.gnu.org; 3 Dec 2024 02:39:47 +0000 Received: from localhost ([127.0.0.1]:57318 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tIIpG-0007fA-SH for submit@debbugs.gnu.org; Mon, 02 Dec 2024 21:39:47 -0500 Received: from fhigh-b6-smtp.messagingengine.com ([202.12.124.157]:49973) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tIIpE-0007er-PI for 74614-done@debbugs.gnu.org; Mon, 02 Dec 2024 21:39:45 -0500 Received: from phl-compute-08.internal (phl-compute-08.phl.internal [10.202.2.48]) by mailfhigh.stl.internal (Postfix) with ESMTP id 5DF4725401A2; Mon, 2 Dec 2024 21:39:39 -0500 (EST) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-08.internal (MEProxy); Mon, 02 Dec 2024 21:39:39 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm3; t=1733193579; x=1733279979; bh=e5q/ypqsaF55EFN1ovGZ1eLEXsu2fhc60Or95+63ULU=; b= KwJV+6O8z+J2cNrkUP6eaOxI3gE9zkpuAh3VFf6T5sowCcyf+6b3A7wZGFZGjbkf JrLVYrSFB2vD4Q6G3o8/VoOJQdr39/JiLRDwOqDej3h+PPm4ZXTM/tbdf4xJAHa4 O1BQoSN64PYMR9ikj2yPZEbwZUoFXZnct7yx2CnA7FiIO0/PlGVoSuddYjxHS2YA WjWRqBiIlc1j3EveEB7T593L3xboLT1Ug8DhtBH7bxTVxf42+yTThbK+0A/7/tOK UGWReHPMTvnWEuVUrGML3CZlHU6Oiu1ntr35LzVRJl8zfL9hm4dvJy3jCpMQhSXu xz7TJimHg/otxAouo6FM5Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1733193579; x= 1733279979; bh=e5q/ypqsaF55EFN1ovGZ1eLEXsu2fhc60Or95+63ULU=; b=u BjL7VBV/Ztr/3KAEBFrNe/zSWammM77u2Lai2CUFln2U1HgH1I7lW977sFMbP21r NQWcSvXreRmcJJCiXBrUYG4jgHrnGkMAg90IpZP2ioGDjqMF8PR9hWGREUgKrdy9 vNF7tYrzWRgc8V0yH8II9illr2WiG6hJFaFOUZP+UCgx7THw+d1TnPf9GfcJqDFq kKZKHO0bt9t3GDF4agfYKmErRVC/6B6br4erNqXGR6FslVvLZ5FMtBqfWUf+esVe dIjiKUtH3KA/BgUnQuE9jFSwY0Sw1Zi8AqYJULMM0BrrjEqDMjOZLMbpi26wQ/q7 OWdzfNXDliyuCpB0RXg7w== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddriedtgdegjecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdpuffr tefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnth hsucdlqddutddtmdenucfjughrpefkffggfgfuvfevfhfhjggtgfesthekredttddvjeen ucfhrhhomhepffhmihhtrhihucfiuhhtohhvuceoughmihhtrhihsehguhhtohhvrdguvg hvqeenucggtffrrghtthgvrhhnpeefvdejveeiffefueekleevieekgedttdevieelvefg vdfghfdtgfegfeefgeeigfenucffohhmrghinhepghhithhhuhgsrdgtohhmnecuvehluh hsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepughmihhtrhihsehg uhhtohhvrdguvghvpdhnsggprhgtphhtthhopedvpdhmohguvgepshhmthhpohhuthdprh gtphhtthhopehmrggvuggrqhhusehgmhgrihhlrdgtohhmpdhrtghpthhtohepjeegiedu gedqughonhgvseguvggssghughhsrdhgnhhurdhorhhg X-ME-Proxy: Feedback-ID: i07de48aa:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 2 Dec 2024 21:39:37 -0500 (EST) Message-ID: <388a95d0-4d2f-44b5-acbc-328df94f9c1a@gutov.dev> Date: Tue, 3 Dec 2024 04:39:35 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: bug#74614: Fwd: bug#74614: Problem of finding the project root when working on submodules of a submodule To: Chu Maeda References: <45fb1453-ca9f-47c2-bd85-d7be860aa840@gutov.dev> <61ff7773-b4f6-4e22-9f36-10adcc13fc29@gutov.dev> Content-Language: en-US From: Dmitry Gutov In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 74614-done Cc: 74614-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Version: 31.1 On 03/12/2024 04:25, Chu Maeda wrote: > It works. Thanks. Thanks for testing, pushed to master now in 8534bb2d6b5. > Dmitry Gutov > 于2024年12月3 > 日周二 10:15写道: > > On 02/12/2024 07:15, Chu Maeda wrote: > > > > Of course, I created such a project on github, you could clone it by > > command: > > > > git clone --recurse-submodules https://github.com/chu-mirror/ > A.git > > mirror/A.git>> > > > > The problem is clear when you open the file A/B/C/README.md, and run > > command project-find-file(C-x p f by default) > > Thanks! > > It seems we should switch from checking for modules once to doing it in > a loop. Try this out: > > diff --git a/lisp/progmodes/project.el b/lisp/progmodes/project.el > index cf1c94a6d20..3cc063a5d99 100644 > --- a/lisp/progmodes/project.el > +++ b/lisp/progmodes/project.el > @@ -591,7 +591,7 @@ project-try-vc--search >                        last-matches)) >              vc-handled-backends)) >            project) > -    (when (and > +    (while (and >              (eq backend 'Git) >              (project--vc-merge-submodules-p root) >              (project--submodule-p root)) > > Note you might need to restart Emacs after applying the patch, because > the directory->project relation is currently cached until restart. > From unknown Tue Jun 24 05:12:30 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 31 Dec 2024 12:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator