From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#66317: Project mode-line Date: Tue, 03 Oct 2023 21:17:09 +0300 Message-ID: <83zg0z6062.fsf@gnu.org> References: <86jzs4ntxb.fsf@mail.linkov.net> <86sf6r4omc.fsf@mail.linkov.net> <86jzs34mg6.fsf@mail.linkov.net> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13911"; mail-complaints-to="usenet@ciao.gmane.io" Cc: dmitry@gutov.dev, me@eshelyaron.com, 66317@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Oct 03 20:18:03 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 1qnjy7-0003Dr-ED for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 03 Oct 2023 20:18:03 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qnjxs-0002k0-Jw; Tue, 03 Oct 2023 14:17:48 -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 1qnjxq-0002jJ-3C for bug-gnu-emacs@gnu.org; Tue, 03 Oct 2023 14:17: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 1qnjxp-0007RW-Qx for bug-gnu-emacs@gnu.org; Tue, 03 Oct 2023 14:17:45 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qnjy6-0001V1-Ii for bug-gnu-emacs@gnu.org; Tue, 03 Oct 2023 14:18:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 03 Oct 2023 18:18: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.16963570535722 (code B ref 66317); Tue, 03 Oct 2023 18:18:02 +0000 Original-Received: (at 66317) by debbugs.gnu.org; 3 Oct 2023 18:17:33 +0000 Original-Received: from localhost ([127.0.0.1]:40685 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qnjxc-0001UE-LH for submit@debbugs.gnu.org; Tue, 03 Oct 2023 14:17:33 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40222) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qnjxa-0001Tw-Lr for 66317@debbugs.gnu.org; Tue, 03 Oct 2023 14:17:31 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qnjxD-0007Ks-0C; Tue, 03 Oct 2023 14:17:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=Dn8q/z+y6gT9oaEBkfxr0qxck3cpSooXSSOA1FKkKEQ=; b=nZmhnfCggYRZ gn4D2I0FTzSCD9mgYM5Ubmvj8EBvIQnZAN3zsFbyhhVGzSawkvT3QwPk5LhJ93ibMIUHPf3vC1us0 18y/TIkcZLAJuSQxxwqX+NridkO5lRXT8ed+dKLVOlx9ynnoCAi8SLBcGfFp/AlB7XtauDBDSvQTK /UJcuyylE11dXHiaJSf1TFKgduF9hX1xJwLZDU1NoRSyRabkoDDRf+jD+4XVOuHTkVsIeEqdQg6Tc xfkJeY9C8B69iTqCxI4cBJ8YdEkGp7Hhz2brewNOl6vuQLp/DWNw0YIEFYIMN6CyDBZWiev1L3H4f XOBMd77GSVlunzbnFzD5ig==; In-Reply-To: <86jzs34mg6.fsf@mail.linkov.net> (message from Juri Linkov on Tue, 03 Oct 2023 20:58:49 +0300) 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:271726 Archived-At: > Cc: 66317@debbugs.gnu.org, Eshel Yaron > From: Juri Linkov > Date: Tue, 03 Oct 2023 20:58:49 +0300 > > > 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). I indeed think that an optional variable to control the mode-line additions would be better than a minor mode: this is too little functionality to justify a minor mode.