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#63469: 29.0.90; project.el doesn't add menu-bar entries Date: Mon, 22 May 2023 22:54:52 +0300 Message-ID: <9b95edb4-ce9e-9dfe-4ad8-24d08422a5ae@gutov.dev> References: <834jod1lvc.fsf@gnu.org> <83o7mkz2ap.fsf@gnu.org> <83sfbvxkj3.fsf@gnu.org> <3d97111e-794d-eeef-73b0-ee3f6f5f15d5@gutov.dev> <83jzx6w2bg.fsf@gnu.org> <6a3eed52-3248-74f9-bcaf-bf12660ae0ed@gutov.dev> <83h6savsz4.fsf@gnu.org> <83mt21vfgl.fsf@gnu.org> <86mt211vk3.fsf@mail.linkov.net> <0ce4532f-03aa-6afe-bd8f-8ef1df6615de@gutov.dev> <86ilco7qbs.fsf@mail.linkov.net> <83r0rctxbc.fsf@gnu.org> <867ct4b4ds.fsf@mail.linkov.net> <835y8otbub.fsf@gnu.org> <86o7mccl5z.fsf@mail.linkov.net> <83lehgp6s6.fsf@gnu.org> 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="28850"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Cc: 63469@debbugs.gnu.org, Juri Linkov To: Spencer Baugh , Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon May 22 21:56:17 2023 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 1q1Bdg-0007Ir-5f for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 22 May 2023 21:56:17 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q1BdU-0006FX-SA; Mon, 22 May 2023 15:56:04 -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 1q1BdS-0006FO-DI for bug-gnu-emacs@gnu.org; Mon, 22 May 2023 15:56:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q1BdS-0006qu-5Y for bug-gnu-emacs@gnu.org; Mon, 22 May 2023 15:56:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q1BdR-000757-TL for bug-gnu-emacs@gnu.org; Mon, 22 May 2023 15:56:01 -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, 22 May 2023 19:56:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63469 X-GNU-PR-Package: emacs Original-Received: via spool by 63469-submit@debbugs.gnu.org id=B63469.168478530626944 (code B ref 63469); Mon, 22 May 2023 19:56:01 +0000 Original-Received: (at 63469) by debbugs.gnu.org; 22 May 2023 19:55:06 +0000 Original-Received: from localhost ([127.0.0.1]:36830 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q1BcY-00070S-6P for submit@debbugs.gnu.org; Mon, 22 May 2023 15:55:06 -0400 Original-Received: from out4-smtp.messagingengine.com ([66.111.4.28]:50711) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q1BcU-0006yz-3Z for 63469@debbugs.gnu.org; Mon, 22 May 2023 15:55:04 -0400 Original-Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 1A4185C0148; Mon, 22 May 2023 15:54:56 -0400 (EDT) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Mon, 22 May 2023 15:54:56 -0400 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:sender:subject:subject:to:to; s=fm3; t= 1684785296; x=1684871696; bh=qgzCptI9a99B2GhoEVlYIKbc11RPt8ZPsRd 8mbBZ4es=; b=tcYBz6Mx71W/XeMoKdZnwSAGpyd+IRanNrpqQHtsUoeZAkoeDku WNMuvi8kmjZ1rd7pzV8nFoFcT6Adpj79ve/DM9dGsKG6VtPMfXWL4pV9RHXJWo6D Mv8QOGqShYoyOaYcAhi3aVV+w8dDFK8D3pyFCqQdwHGe8aDchErSEzjxx5EjC4wl Z83t849F1eM3vZS6IYYbYNFkrZ1Z38NbJOzxeeWLUqrjXjbafHHcH/4I6lhXJj1t ZbWzwct9TRI6pxU2cbK0RsygAIIH3Ye9Q05rnuS2oib9p67fY/LLjcQIn44jW+Zs +PE4PXasfaaXOgh71xK/LYiCk9KW0pKkBUA== 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:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1684785296; x=1684871696; bh=qgzCptI9a99B2GhoEVlYIKbc11RPt8ZPsRd 8mbBZ4es=; b=QeWMJqAih5EzeY6Pzr90g5pi7X6zuDd57P3StKo6JtiIgmic2T4 ta7mvBiOIZzmEqdUI4WYZDcGdhEmR6CFv5t5X+p+1VLFztvkyMmLT84yPQKS+P36 b+9fz/5DfCmcMeOqaiCgE3plOT79B5B16ly9RSD6DrwixoFAu59o7WuDyJkEjAw0 5L8gu9jc3vCbSZQBj7otsGzObnPpJ8YcQ8yNXRiiuJPw/LXWWgLts9/USQ39Ek9i TXXxu8tvvQHX8iBI+w/zEjX5j4ZN02a80u217oEpYr6+aSg0G9reiCsMHdFumX1v RfiIVw+I4WaLoDBbEHMDrxmIYU7/Xo09Y7Q== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrfeejuddguddvlecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefkffggfgfuvfevfhfhjggtgfesthejredttdefjeenucfhrhhomhepffhm ihhtrhihucfiuhhtohhvuceoughmihhtrhihsehguhhtohhvrdguvghvqeenucggtffrrg htthgvrhhnpeeigfetveehveevffehledtueekieeikeeufeegudfgfeeghfdulefgfeev ledvveenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe gumhhithhrhiesghhuthhovhdruggvvh X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 22 May 2023 15:54:54 -0400 (EDT) Content-Language: en-US In-Reply-To: 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:262189 Archived-At: On 22/05/2023 22:49, Spencer Baugh wrote: > And actually, the mention of VC makes > me realize: We already do something expensive by default for every new > buffer: Query the VC state. So maybe it's not so bad to run > project-current every time we make a new buffer? Or at least, in the > exact same situations that we query the VC state? Maybe we can even > implement some sharing between the project-current lookup and the VC > state query, for the vc project backend? The VC project backend is not the only backend out there. Others' performance characteristics may well be different. Further, its root-finding logic is different from VC. We also cannot simply see which backend the current file is registered at because project-vc has different options which affect how the root is determined. Long story short, we won't be able to simply reuse VC's cached info. > (I personally agree that this should be always on, with perhaps a user option to turn it off.) I'm fairly sure not everybody will like the additional delay when visiting files over Tramp.