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#71823: 31.0.50; project-mode-line and eglot duplicate project-name in mode-line Date: Sat, 29 Jun 2024 15:43:17 +0300 Message-ID: <86sewvj4wq.fsf@gnu.org> References: <86wmm9jfk7.fsf@gnu.org> <86o77kjk87.fsf@gnu.org> <5782856d-9c8f-4903-9d42-143a015fee14@gutov.dev> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="554"; mail-complaints-to="usenet@ciao.gmane.io" Cc: sbaugh@janestreet.com, joaotavora@gmail.com, 71823@debbugs.gnu.org, juri@linkov.net To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jun 29 14:44:21 2024 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 1sNXRF-000AX0-JA for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 29 Jun 2024 14:44:21 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sNXQz-00022O-LY; Sat, 29 Jun 2024 08:44: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 1sNXQx-00021r-28 for bug-gnu-emacs@gnu.org; Sat, 29 Jun 2024 08:44:03 -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 1sNXQw-0000w4-PK for bug-gnu-emacs@gnu.org; Sat, 29 Jun 2024 08:44:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sNXQw-00070L-Ek for bug-gnu-emacs@gnu.org; Sat, 29 Jun 2024 08:44: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: Sat, 29 Jun 2024 12:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71823 X-GNU-PR-Package: emacs Original-Received: via spool by 71823-submit@debbugs.gnu.org id=B71823.171966502726895 (code B ref 71823); Sat, 29 Jun 2024 12:44:02 +0000 Original-Received: (at 71823) by debbugs.gnu.org; 29 Jun 2024 12:43:47 +0000 Original-Received: from localhost ([127.0.0.1]:37372 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sNXQR-0006zN-PO for submit@debbugs.gnu.org; Sat, 29 Jun 2024 08:43:46 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:43826) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sNXQP-0006z8-Th for 71823@debbugs.gnu.org; Sat, 29 Jun 2024 08:43:30 -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 1sNXQJ-0000op-9O; Sat, 29 Jun 2024 08:43:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=Dkt2kEnPc01Dgvy2s/KZ5tFeKXUTMoMeqVe+pFKCrRA=; b=SMDzbH6iU7LcY/LaMVWw EM69LkyZkQRVMQyBMUIckfCF49tLnUpVixpaa60KeoWMtse90pu6uXpOSK9gzwjqhiKHM9Ha2fn6a aQpWanrDE3jQXmLs+bDqvybd5JepYRe1fMaMDMGNX6slbvzAkTZYo4Jx87VPblD4vH896vUYJRPEM S2CaJEBWepTZ8UoIfiWSriVwpGSB+y9ka+WvSo5jbRTp+IsPmtwgQnI85tOuH4ilVlx/JYfm6NMFz cHozWGBDffEozcjQBbomlU8wvbKtQC2qL5WvXKajqOi0NE5TAZnXMJSOfZf7zxmpTt6vxHRyXn4MD AVrrX3h7TdBS/g==; In-Reply-To: <5782856d-9c8f-4903-9d42-143a015fee14@gutov.dev> (message from Dmitry Gutov on Sat, 29 Jun 2024 14:59:10 +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:288124 Archived-At: > Date: Sat, 29 Jun 2024 14:59:10 +0300 > Cc: joaotavora@gmail.com, 71823@debbugs.gnu.org, Juri Linkov > From: Dmitry Gutov > > On 29/06/2024 10:12, Eli Zaretskii wrote: > > After all, the project-mode-line > > option belongs to project.el, so the fact that it adds the project > > name to the mode line too indiscriminately can legitimately be > > considered to be a problem with that option. Right? > > It's "discriminate" In what way? > and off by default. Sure, I meant when the option is turned on. > > On top of that, > > project-mode-line is new in Emacs 30, whereas Eglot has been showing > > the project in its mode line before that. So once again, IMO the onus > > is on project.el to fix this somehow. For example, by not adding this > > to the mode line in Eglot-controlled buffers. > > Hard-coding an "unless Eglot" condition seems like a bad idea in terms > of abstraction and general code logic. I agree, but Spencer's patch did the same in the opposite direction. > But if you have some specific improvements to suggest, please go > ahead. I don't, but maybe someone else does. AFAIU, João suggested something like that as well. So we all agree about the way to solve it, and we "just" need a patch that implements such a solution.