From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#63469: 29.0.90; project.el doesn't add menu-bar entries Date: Tue, 23 May 2023 09:52:13 +0300 Organization: LINKOV.NET Message-ID: <86r0r7a6aq.fsf@mail.linkov.net> 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 Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35119"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu) Cc: dmitry@gutov.dev, Eli Zaretskii , 63469@debbugs.gnu.org To: Spencer Baugh Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue May 23 09:05:29 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 1q1M5I-0008rs-QE for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 23 May 2023 09:05:28 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q1M4w-00072K-Iw; Tue, 23 May 2023 03:05:06 -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 1q1M4t-00071r-9S for bug-gnu-emacs@gnu.org; Tue, 23 May 2023 03:05:03 -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 1q1M4t-00071a-0q for bug-gnu-emacs@gnu.org; Tue, 23 May 2023 03:05:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q1M4s-00057Z-S3 for bug-gnu-emacs@gnu.org; Tue, 23 May 2023 03:05:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 23 May 2023 07:05: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.168482547119628 (code B ref 63469); Tue, 23 May 2023 07:05:02 +0000 Original-Received: (at 63469) by debbugs.gnu.org; 23 May 2023 07:04:31 +0000 Original-Received: from localhost ([127.0.0.1]:38097 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q1M4M-00056W-Qw for submit@debbugs.gnu.org; Tue, 23 May 2023 03:04:31 -0400 Original-Received: from relay2-d.mail.gandi.net ([217.70.183.194]:58359) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q1M4F-00055o-Br for 63469@debbugs.gnu.org; Tue, 23 May 2023 03:04:24 -0400 Original-Received: (Authenticated sender: juri@linkov.net) by mail.gandi.net (Postfix) with ESMTPSA id 5AE2940006; Tue, 23 May 2023 07:04:15 +0000 (UTC) In-Reply-To: (Spencer Baugh's message of "Mon, 22 May 2023 15:49:59 -0400") 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:262205 Archived-At: >>> Actually I miss this feature very much. There is already the mode-line >>> indication with the VC system name and the VC branch name, but >>> no indication with a project name, so similar files >>> in different projects all are showing the same "Git-master". >> >> We can show this on the mode line always, whenever there's a project. >> No need for a minor mode. > > This might get crowded when there's also the VC modeline indicator. To get it less crowded the VC modeline indicator could be shorter. For most projects there is no need to show the backend name all the time. So instead of "Git-emacs-29" better to add a user option to be able to keep only the branch name, i.e. in 'vc-default-mode-line-string' such hard-coded string should be customizable: (concat backend-name "-" rev)) > 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. > (I personally agree that this should be always on, with perhaps a user > option to turn it off.) Probably a boolean option would be simpler for users than such line: (assq-delete-all 'project-mode mode-line-format)