From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Brad Howes via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#72611: [Patch] Store canonical paths to project roots Date: Mon, 26 Aug 2024 19:33:57 +0200 Message-ID: <08DD8F1F-73DB-42A9-81AE-E117D79AB0ED@mac.com> References: <7AF98F4C-3787-40A0-980F-760694B930B1@mac.com> <2f6d3a72-097d-47b9-bd62-dcbb15de6a07@gutov.dev> Reply-To: Brad Howes Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3818.100.11.1.3\)) 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="7118"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 72611@debbugs.gnu.org To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Aug 26 19:35:30 2024 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 1sidco-0001iN-PI for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 26 Aug 2024 19:35:30 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sidcZ-0005FD-BV; Mon, 26 Aug 2024 13:35:15 -0400 Original-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 1sidcW-0005Et-LS for bug-gnu-emacs@gnu.org; Mon, 26 Aug 2024 13:35:12 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sidcW-0001sI-1r for bug-gnu-emacs@gnu.org; Mon, 26 Aug 2024 13:35:12 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=References:Date:In-Reply-To:From:Mime-Version:To:Subject; bh=yNTxgQfPcpIvpugweDwD/z5u70Ah77RwpCBvjfB23/w=; b=lfQoUneaSCKIfNhZ/JdvfuQ57ZPsWlXg0zwQBm1XTboi8uRDx0Kzj8DP1i8MPncoJlDyg3kw+X4J9153VWrSB1lvNzgwU6zQ7q4gSNVygstqO0fTkd9eOiWTg745B9cD5F8ftYnxeio0qTycUOBg5qEgeAjQkQ6RHbyy1NhEV7KDqZjKY8/sIEn3uGM0NXwQEptycIFL/6r9aMa6LXuGLGAsVxt7QY6SCwqUeMR9DNt//p+/cJid0zf2uInk9THzIlRnHFEDwHZ+uD7FAtSwGzdDwxjINMurjFCgLl5BOZTz9Xj3paEGU+CZ/KIXCkvoMUgwzAX45cUR3n8cpQEJtQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1siddK-0004Mx-GT for bug-gnu-emacs@gnu.org; Mon, 26 Aug 2024 13:36:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Brad Howes Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 26 Aug 2024 17:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72611 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 72611-submit@debbugs.gnu.org id=B72611.172469371116722 (code B ref 72611); Mon, 26 Aug 2024 17:36:02 +0000 Original-Received: (at 72611) by debbugs.gnu.org; 26 Aug 2024 17:35:11 +0000 Original-Received: from localhost ([127.0.0.1]:45142 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sidcV-0004Le-3Q for submit@debbugs.gnu.org; Mon, 26 Aug 2024 13:35:11 -0400 Original-Received: from st43p00im-zteg10073501.me.com ([17.58.63.180]:58736) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sidcS-0004LO-Ns for 72611@debbugs.gnu.org; Mon, 26 Aug 2024 13:35:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mac.com; s=1a1hai; t=1724693651; bh=yNTxgQfPcpIvpugweDwD/z5u70Ah77RwpCBvjfB23/w=; h=Content-Type:Mime-Version:Subject:From:Date:Message-Id:To; b=MCgVLy7aC/2E5OyqdP6OX9DQJsA6ZJdJw/dXmkxVSEcL1Jt/5bmtM9A7XKRB2t456 gJVkAfc+9Z8nZKQNqEH4M0IVbTzk1sSoVmdBIokGrBJtWr2rBis/mVRiZ5QVxgGsPd Cqpc4/kEH1b/yLfpIajdMFrVxCFtJYhK5KpKsNjnPWIpaRxQRhLy6IwEBqOlRyb0/D vpMYtYs0+OF7hQndxJBTfVJQjJhFhWRQnwei3XzA0mChH23Mw7KHMJl87ejAZSpXrM xFO6fC+YHV5InqhLqBMwYQ200ZsPkfCUBxx/5y5QBfHkAOImmgmJ6yx2o+u5dvf6hT ulD9PHWEhh1zA== Original-Received: from smtpclient.apple (st43p00im-dlb-asmtp-mailmevip.me.com [17.42.251.41]) by st43p00im-zteg10073501.me.com (Postfix) with ESMTPSA id 90006A007C0; Mon, 26 Aug 2024 17:34:09 +0000 (UTC) In-Reply-To: <2f6d3a72-097d-47b9-bd62-dcbb15de6a07@gutov.dev> X-Mailer: Apple Mail (2.3818.100.11.1.3) X-Proofpoint-GUID: N964YiBN1dPkL3-yoiCsOG17aVGu9k14 X-Proofpoint-ORIG-GUID: N964YiBN1dPkL3-yoiCsOG17aVGu9k14 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.28.16 definitions=2024-08-26_12,2024-08-26_01,2024-05-17_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 mlxlogscore=999 mlxscore=0 clxscore=1011 malwarescore=0 adultscore=0 spamscore=0 phishscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2308100000 definitions=main-2408260133 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:290786 Archived-At: On 26 Aug 2024, at 03:20, Dmitry Gutov wrote: >=20 > This is the default implementation of 'project-root' which is = currently only used as a fallback when a backend implements the outdated = convention (method 'project-roots'). >=20 > So it might have effect in your case (which backend are you using? I'd = like to ask), but not in the general one. >=20 > Speaking of "saved project paths file", if your goal is to have = expanded file names written to ~/.emacs.d/projects, then we have code in = project--remember-dir that explicitly abbreviates, since August 2023. = That's commit 255b7e1a046c. Hi Dimitri, Thanks for the info. I see now my patch is not the proper place in which = to do such a change, so I will withdraw it and close it. FYI, my goal was to keep from seeing duplicate entries in the list of = projects due to one path starting with =E2=80=9C~=E2=80=9D and another = having that expanded out to my home directory. Ideally the paths would = all be shortened by removing their common prefix, but I took the = shortest route and just expanded whatever was obtained from=20 As for a backend, I assume that this is being delegated to =E2=80=98vc=E2=80= =99 or =E2=80=98git=E2=80=99. Not really sure, but I don=E2=80=99t think = I=E2=80=99ve set anything specific for this. Regards, Brad=