From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Federico Tedin via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#72300: project.el: detect newly created project contained within another Date: Mon, 05 Aug 2024 21:56:15 +0200 Message-ID: <87a5hqyc9s.fsf@gmx.de> References: <87r0bh8cy7.fsf@gmx.de> <86mslssny9.fsf@gnu.org> Reply-To: Federico Tedin Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20143"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Dmitry Gutov , Eli Zaretskii , 72300@debbugs.gnu.org To: Ship Mints Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Aug 05 21:56:46 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 1sb3p0-0004zj-GB for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 05 Aug 2024 21:56:46 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sb3ov-0005Er-7D; Mon, 05 Aug 2024 15:56:41 -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 1sb3ou-0005Eh-8f for bug-gnu-emacs@gnu.org; Mon, 05 Aug 2024 15:56:40 -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 1sb3ot-0006pn-Vd for bug-gnu-emacs@gnu.org; Mon, 05 Aug 2024 15:56:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=Rd5O6dPdst4e4Acp7CV/43ID8f8xn3k5b8UTReywpXg=; b=XIv/w7Sqq2/X28E7hURwYYdVpI7oNSJOO2miylY2IhUwl1h6Mjy9IlwCQ8n98LQqjgnB97Ub5yNDVQXPAEDOlovU4Gozsdt1Ty7cA4uNadm4HrQFnm3i6aufzC3lD5L7ZU6FjM4Ag4IZAp18qfKeU2WdtrNZ0pRhApUisr2gYAVPizE0llMm7nd6PSyg2IndSZTIvsX/BDVHNiNb18QClPgAe+uSiGDLqGuUsSYudNo3t3KAYaMdDIRM4Fe98m/rokuW9t6z7Jn3hBY9dw55BOzrunQpFNuehVuvxZ46umPgdSHZEJqd1JZPD4EZJyRY7mUZ/e0o5L5awDaXTwRfkg==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sb3pG-0002cP-Dy for bug-gnu-emacs@gnu.org; Mon, 05 Aug 2024 15:57:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Federico Tedin Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 05 Aug 2024 19:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72300 X-GNU-PR-Package: emacs Original-Received: via spool by 72300-submit@debbugs.gnu.org id=B72300.172288781810056 (code B ref 72300); Mon, 05 Aug 2024 19:57:02 +0000 Original-Received: (at 72300) by debbugs.gnu.org; 5 Aug 2024 19:56:58 +0000 Original-Received: from localhost ([127.0.0.1]:59506 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sb3pC-0002c5-HL for submit@debbugs.gnu.org; Mon, 05 Aug 2024 15:56:58 -0400 Original-Received: from mout.gmx.net ([212.227.15.18]:43763) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sb3pA-0002bj-Ab for 72300@debbugs.gnu.org; Mon, 05 Aug 2024 15:56:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.de; s=s31663417; t=1722887783; x=1723492583; i=federicotedin@gmx.de; bh=Rd5O6dPdst4e4Acp7CV/43ID8f8xn3k5b8UTReywpXg=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date: Message-ID:MIME-Version:Content-Type:cc:content-transfer-encoding: content-type:date:from:message-id:mime-version:reply-to:subject: to; b=hcNwXa39sLPn0bdM/fOGtRDADsWnUv1MNRxKq8x3brZjrRv6vNicfviaI78PdgLv QmTWz+celkhT6lQGJB2ao6D72K1ZdnSA1k6GCaGh/rul3f1x0XbWHWA/Qrd7fvUcb qyAKbUNshkdGGwrnF1/v73iVwapGAO3sYZWMy2Uo51IWfvpdJhlYKhOdV/Nf3sVjU K95UTVRKbI/+8AXVB0jhmRZjS930ewqEThkxFF0IMDjvajtFbNMrfFS6+tBIhEUf8 pN7SMcVkt8v8koop7X5NHK8ptRzc/lNAx6/rFpTTJRMwGcr7h+r5Yh9Soik+7zJNX ldS/6xiu5yvnC9ByVw== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from seele ([91.66.5.21]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MgNh7-1s1BAe1gjP-00mT5L; Mon, 05 Aug 2024 21:56:23 +0200 In-Reply-To: (Ship Mints's message of "Mon, 5 Aug 2024 13:18:00 -0400") X-Provags-ID: V03:K1:1fevFXK1vI6mgIYG7qaH+VE8IyWtYZMUFIfjkCoe3Y/1vL9/waJ 72TN5+U/SnGlG9gcJD6H7fmiKOjPa+w4XZ5uLQbEGjleaTt7IxJI0Y7Y0EB5Sj9rk2P3i4m 4lEgKsWAYBfV2YOfR17Qds+0zaOH2AseDn1aH47M+PKrkat/ryfK3KWAuMztnijVofDG193 dvTSIit2eLEZn/lkn/8rQ== UI-OutboundReport: notjunk:1;M01:P0:Pqe1hK/m7pw=;aPlktrgvdAVJ8QjITBONgtvSQtd qNHpxVeL6J/Fu2K1ymeESAfp8n2D8a65JCxHSJd60WbhZHoa/2RV082x2xtPblZTj79wFLGCv XS3ggc2+vR9ZpLZZvqO+YFKIPqyuZI6vTalUsOS5dvi5aARBkcUcTCp7t5SnJcapM/B555CHW bf/gS4aSWuIxUVlv3P9clgEEgXe1PNoDFLJtOjHPsKG9lhT6/ndHp8aODhR5N1pyw9Z6EQK+0 OF2d/pRA7TgDT1nK96h7gtt9SJtZtIeV0LVPzBuec6/MLwEihRwZ+JfgoYevv8R7fWOrAEofl 99RMpVNmY74foFBVyp7xeemXq+6DaSisSNgggULroixUB5nSJWd95PG2UVPyHiGtaJ43G8IXY I3NbHL+1cUov1fTNDvglLZg/uoLZrJ5HMK6xsUHo2n8AzHp35WYp2G2eblt31xdqZ2NiV5VlK 0DyW1HNRvYKP64xQq155VmNyl/kjC/GofzmTjY5JvRVrjS6OjNgzVaWCaWlR7s51cbRP1pTVG UBtmRtgS6tAc2xnZaaoUmYUbj5WqkJo+IOE+CO5r5LdEhClEaBw5/Uznp3fnjThc5xm2y/TQy 30+Xx8YqJFwqEkYmSP8R8ld8MyQj9zuEbKYIVCIir1TbNN3GhgMcXhFBo5YE6gqutOBPeQV7X L8gaTOr/lxKbfYdsR0Gehi0baA4nicfq78f7iij5Bw7YTPi5FLlso5Ep+TJIC2RUXgem0nOn7 R9FVkFC0jAI75+UHZgmDDSGLa1v2w2yQKUiMj++rhj2VVhg4IeLJWDLM+8DqaxPaO0umHePM 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:289806 Archived-At: Ship Mints writes: > This appears to be intentional behavior of project's caching implemented via (vc-file-getprop dir 'project-vc) and > (vc-file-setprop dir 'project-vc project) in project-try-vc. There is no facility, public API or private, to clear the cache en-masse. One could reset the > cache via clearing the vector vc-file-prop-obarray (setq vc-file-prop-obarray (make-vector 17 0)) in the absence of an API. You can observe what's > in your vc-file-prop-obarray for yourself before taking this action. Ah wow, indeed setting that variable to (make-vector 17 0) does solve the problem. Thanks! Now I wonder if this could/should be exposed to the user somehow.