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#66317: Project mode-line Date: Tue, 03 Oct 2023 20:58:49 +0300 Organization: LINKOV.NET Message-ID: <86jzs34mg6.fsf@mail.linkov.net> References: <86jzs4ntxb.fsf@mail.linkov.net> <86sf6r4omc.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22689"; 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: 66317@debbugs.gnu.org, Eshel Yaron To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Oct 03 20:00:18 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 1qnjgw-0005fX-5Q for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 03 Oct 2023 20:00:18 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qnjgT-00086E-C2; Tue, 03 Oct 2023 13:59:49 -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 1qnjgQ-000865-JG for bug-gnu-emacs@gnu.org; Tue, 03 Oct 2023 13:59:46 -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 1qnjgP-0003xd-OP for bug-gnu-emacs@gnu.org; Tue, 03 Oct 2023 13:59:46 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qnjgg-00011z-Lf for bug-gnu-emacs@gnu.org; Tue, 03 Oct 2023 14:00: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, 03 Oct 2023 18:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66317 X-GNU-PR-Package: emacs Original-Received: via spool by 66317-submit@debbugs.gnu.org id=B66317.16963559963916 (code B ref 66317); Tue, 03 Oct 2023 18:00:02 +0000 Original-Received: (at 66317) by debbugs.gnu.org; 3 Oct 2023 17:59:56 +0000 Original-Received: from localhost ([127.0.0.1]:40674 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qnjga-000116-EH for submit@debbugs.gnu.org; Tue, 03 Oct 2023 13:59:56 -0400 Original-Received: from relay9-d.mail.gandi.net ([2001:4b98:dc4:8::229]:55937) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qnjgX-00010h-Si for 66317@debbugs.gnu.org; Tue, 03 Oct 2023 13:59:54 -0400 Original-Received: by mail.gandi.net (Postfix) with ESMTPSA id DDD68FF803; Tue, 3 Oct 2023 17:59:26 +0000 (UTC) In-Reply-To: (Dmitry Gutov's message of "Tue, 3 Oct 2023 20:51:50 +0300") X-GND-Sasl: juri@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:271724 Archived-At: > On 03/10/2023 20:11, Juri Linkov wrote: >>> This looks nice (I actually have something similar in my >>> `mode-line-format` already), but I think that modifying >>> `mode-line-format` when project.el is loaded is a bit problematic. >>> Perhaps a better alternative would be to define a variable that holds >>> this mode-line construct, along with an autoloaded function that people >>> can call from their init files to actually add this construct to >>> `mode-line-format`. WDYT? >> In bug#63469 I implemented 'project-mode' with the buffer-local >> variable 'project-name'. But due to objections I rewrote this >> to simpler and direct implementation. I could revive the previous >> patch now. > > Could you make it a user option 'project-show-in-mode-line' or similar? > > Minor mode 'project-mode-line-mode' would also be okay. But there is no such mode for vc-mode (vc-mode is not a proper mode).