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: Wed, 24 May 2023 04:10:23 +0300 Message-ID: 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> <86r0r7a6aq.fsf@mail.linkov.net> 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="1139"; 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: Eli Zaretskii , 63469@debbugs.gnu.org To: Juri Linkov , Spencer Baugh Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed May 24 03:11:11 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 1q1d1y-000AeQ-9T for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 24 May 2023 03:11:11 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q1d1r-0007Wf-SI; Tue, 23 May 2023 21:11:03 -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 1q1d1q-0007WW-OX for bug-gnu-emacs@gnu.org; Tue, 23 May 2023 21:11: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 1q1d1q-0001G3-G4 for bug-gnu-emacs@gnu.org; Tue, 23 May 2023 21:11:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q1d1q-00013R-Bq for bug-gnu-emacs@gnu.org; Tue, 23 May 2023 21: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: Wed, 24 May 2023 01:11:02 +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.16848906334018 (code B ref 63469); Wed, 24 May 2023 01:11:02 +0000 Original-Received: (at 63469) by debbugs.gnu.org; 24 May 2023 01:10:33 +0000 Original-Received: from localhost ([127.0.0.1]:40692 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q1d1M-00012k-Px for submit@debbugs.gnu.org; Tue, 23 May 2023 21:10:33 -0400 Original-Received: from out1-smtp.messagingengine.com ([66.111.4.25]:49153) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q1d1L-00012Y-RS for 63469@debbugs.gnu.org; Tue, 23 May 2023 21:10:32 -0400 Original-Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id C48A05C0180; Tue, 23 May 2023 21:10:26 -0400 (EDT) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Tue, 23 May 2023 21:10:26 -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= 1684890626; x=1684977026; bh=MYPUtpqHkknzB3DeMiKilTOC94cF+p58Riv xiwpgPxs=; b=oaTNRmOrjJEXrXqZWdWjj9QM9ug8nGU+piysDbEyZEX3zHAf0wH Y2wXr/AH5kBGosItezLVVaGeB5KVLURIPd2MjaoEykRY2qPIaLfOlMal2EMgdy7L 4eXDCSXz7i8Px3ivGzDe3VEzSk/YBDC+dYYRrunYKFNTRGAYqoh0OpsCQCwYtWc1 Cs+dgF5QOHpx8pJEk0Cb5Qvge9oADywlBdlP0lRWXq/DneGSUBHpy8VCc0CSUxIJ kdep5m3gcuoWOU7VL84JzvPqoXRsxj/p277AevfhwGOT796WfzMYvk9u15Xxa4Q9 lRz0E8MwZ3PRBvzRckYI3lsy3VfxIpMFi7Q== 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= 1684890626; x=1684977026; bh=MYPUtpqHkknzB3DeMiKilTOC94cF+p58Riv xiwpgPxs=; b=cuvXYDQKJzYy50ldMcc+hru69OP88eR+QXa5xx8wIfMP82J1A7+ 681389W5gDP/n5ipfabhUHYvuCcTD/SJ6LgnhWniWxJ7TDsIhG4vdonYsQx52saK 4qD1ZqjrFh3uOiIIL4DB5qOwrDVCoZUOOKUf764X0V5LWsY6in5CTXmRNbV02LCL RNLQsFtnyx79FsKBooxEvJcGTFllhHTZhWq1I0EIkaPqyRRtIJAjbCCNvFmoJ1dW u8Hq5vhBjGl0QU+6FkNmwexM2tcGG6F58CROBxBQyOHH03KdppB8ltrUjlyCOxVy nxZVUEIiP29Btaa4LDvL+1xcxeQml/YiWVQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrfeejgedggeefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvvehfhfgjtgfgsehtjeertddtfeejnecuhfhrohhmpeffmhhi thhrhicuifhuthhovhcuoegumhhithhrhiesghhuthhovhdruggvvheqnecuggftrfgrth htvghrnhepiefgteevheevveffheeltdeukeeiieekueefgedugfefgefhudelgfefveel vdevnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepug hmihhtrhihsehguhhtohhvrdguvghv X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 23 May 2023 21:10:25 -0400 (EDT) Content-Language: en-US In-Reply-To: <86r0r7a6aq.fsf@mail.linkov.net> 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:262263 Archived-At: On 23/05/2023 09:52, Juri Linkov wrote: >> Still, I would like this feature. 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? > Sharing between vc and project would be nice. If possible, this will > allow a shorter modeline indicator that will combine vc and project like > > --- project-branch --- > > where the project name replaces the vc-backend name. That indeed sounds like something that should require specific configuration. There can be projects without a branch, or branches without "current project". Or situations like the project root is not the vc root. E.g. when the current buffer is in a submodule (so the current branch is submodule's), and the project pertains to the parent repository.