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: Thu, 25 May 2023 19:17:51 +0300 Message-ID: <3a0fca4f-1ec5-ae9c-2ae5-fcadda8f3755@gutov.dev> References: <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> <868rdexnrz.fsf@mail.linkov.net> <30e11f7d-0015-b509-33ee-c2afdd6dffaf@gutov.dev> <865y8g53cn.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="32461"; 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: Spencer Baugh , Eli Zaretskii , 63469@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu May 25 18:19:23 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 1q2DgQ-00089e-1E for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 25 May 2023 18:19:23 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q2Dg9-0007WT-JP; Thu, 25 May 2023 12:19:05 -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 1q2Dg6-0007UV-9q for bug-gnu-emacs@gnu.org; Thu, 25 May 2023 12:19:04 -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 1q2Dg6-0006ft-1m for bug-gnu-emacs@gnu.org; Thu, 25 May 2023 12:19:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q2Dg5-0002H9-T2 for bug-gnu-emacs@gnu.org; Thu, 25 May 2023 12:19: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: Thu, 25 May 2023 16:19: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.16850314828681 (code B ref 63469); Thu, 25 May 2023 16:19:01 +0000 Original-Received: (at 63469) by debbugs.gnu.org; 25 May 2023 16:18:02 +0000 Original-Received: from localhost ([127.0.0.1]:47946 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q2Df8-0002Fx-1u for submit@debbugs.gnu.org; Thu, 25 May 2023 12:18:02 -0400 Original-Received: from wout5-smtp.messagingengine.com ([64.147.123.21]:56271) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q2Df6-0002FS-CY for 63469@debbugs.gnu.org; Thu, 25 May 2023 12:18:00 -0400 Original-Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id A4301320084E; Thu, 25 May 2023 12:17:54 -0400 (EDT) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Thu, 25 May 2023 12:17:54 -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= 1685031474; x=1685117874; bh=A82dlXkcUr5PCMkSp888Cva4V8jN/fzq8vy PvyvX5+w=; b=u5Fhy7aVWN9otex5Qu1gYbp74Rqidg0w9A+uUMcG+Csv+L4cedT /lDERvpxTnGY9ocB+XxPz3LnJLRqAkUjxXfiGwlQLTOh17uFNHuQqKtx8pmT1ylo MlMSE1bc85j80hWg9kUfk9ZtsC38QQhiYXEggOQWYOvLxnD3AgTS8VL36Yyn39Me vMDi3ucDyUg1nJzwt1JcNc2qd1W79Xka6tNCefE0Tk+mB0MFgFsiuTYJEEYf3e5c wjJ5MIYY/LSUFkuvM2p/w6XfV+XkEWFsaHsLqTCqCp1Qd0v6weEbIL3x499kPF1T hjONnppsXqZfd2AYrjR0HYHY5/eoOMTcvyw== 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= 1685031474; x=1685117874; bh=A82dlXkcUr5PCMkSp888Cva4V8jN/fzq8vy PvyvX5+w=; b=XYR3stsQ0b5RuMSL1LDnOTCehVnHxNBl/wPdfL5pG6dmoX6vGMZ rpt/UF2vl6ImRmxuIaoUdYefVjDx/uKPHTlnmA3NXELs9IjROudqaaolVXsozoEG TZMdVEjWhJIgHWnlrs9dRusW+1Igmee41Ihncb7ETEeCeIaNJ9W43WSPumIXgLqZ 6N32WHIyeJY2vOlQrrZf+PhrRtd9vvHyQOecO4BRIwKEfX11N1KaILmX1G6UTcFT JGQL/w+/NcnSIpYAXGmSdJ8YK0TSt9la0NBQh+JrGmUgvxMNN9qwNGXf9yyIh9bv kdRUgzc5j4H673pFYWH3kmZccrOKhJr6X0w== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrfeejjedgleekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvvehfhfgjtgfgsehtjeertddtfeejnecuhfhrohhmpeffmhhi thhrhicuifhuthhovhcuoegumhhithhrhiesghhuthhovhdruggvvheqnecuggftrfgrth htvghrnhepiefgteevheevveffheeltdeukeeiieekueefgedugfefgefhudelgfefveel vdevnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepug hmihhtrhihsehguhhtohhvrdguvghv X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 25 May 2023 12:17:52 -0400 (EDT) Content-Language: en-US In-Reply-To: <865y8g53cn.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:262379 Archived-At: On 25/05/2023 09:35, Juri Linkov wrote: >>>>> 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. >>> The idea is simple: just to replace the backend name by the project name >>> when the project and its name are non-nil. >> I'm not sure the effect will be clear enough and appreciated by all of our >> users. > This is intended only after customization like this that shows the backend > by default: > > (defcustom vc-mode-line-format '(backend status revision) > "What items to display on the mode line. > Possible values: > `project' - the current project name; > `backend' - backend name; > `status' - a character that denotes the vc status; > `revision' - revision number and/or lock status; > `commit' - commit name; > `commit-abbr' - abbreviated commit name; > `branch' - branch name; > `separator' - a string between items. > See more at Info node (emacs) VC Mode Line." > :type '(repeat > (choice > (const :tag "Project name" project) > (const :tag "Backend name" backend) > (const :tag "Status character" status) > (const :tag "Revision number/Lock status" revision) > (const :tag "Commit name" commit) > (const :tag "Abbreviated commit name" commit-abbr) > (const :tag "Branch name" branch) > (function :tag "Custom function") > (string :tag "Separator"))) > :version "30.1" > :group 'vc) It's not quite ideal, since there are projects without VCS and VC without projects (as mentioned previously), but it sounds like a worthy experiment. Especially since the new behavior will be optional.