From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: sbaugh@catern.com Newsgroups: gmane.emacs.bugs Subject: bug#71823: 31.0.50; project-mode-line and eglot duplicate project-name in mode-line Date: Wed, 03 Jul 2024 17:10:06 +0000 (UTC) Message-ID: <87h6d6flld.fsf@catern.com> References: <86wmm9jfk7.fsf@gnu.org> <86o77kjk87.fsf@gnu.org> <17183c60-1733-4938-9a85-f3351c87bcb9@gutov.dev> <87jzi6fvar.fsf@catern.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38128"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Spencer Baugh , Eli Zaretskii , Juri Linkov , 71823@debbugs.gnu.org, Dmitry Gutov To: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jul 03 19:11:31 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 1sP3Vy-0009aZ-7r for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 03 Jul 2024 19:11:31 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sP3VW-0002S8-IO; Wed, 03 Jul 2024 13:11:02 -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 1sP3VU-0002QL-ER for bug-gnu-emacs@gnu.org; Wed, 03 Jul 2024 13:11:00 -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 1sP3VU-0007Nr-2Y for bug-gnu-emacs@gnu.org; Wed, 03 Jul 2024 13:11:00 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sP3VV-0007Vl-T8 for bug-gnu-emacs@gnu.org; Wed, 03 Jul 2024 13:11:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: sbaugh@catern.com Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 03 Jul 2024 17:11:01 +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.172002661828823 (code B ref 71823); Wed, 03 Jul 2024 17:11:01 +0000 Original-Received: (at 71823) by debbugs.gnu.org; 3 Jul 2024 17:10:18 +0000 Original-Received: from localhost ([127.0.0.1]:40319 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sP3Uo-0007Up-1N for submit@debbugs.gnu.org; Wed, 03 Jul 2024 13:10:18 -0400 Original-Received: from s.wfbtzhsw.outbound-mail.sendgrid.net ([159.183.224.105]:27220) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sP3Ul-0007Ua-Nb for 71823@debbugs.gnu.org; Wed, 03 Jul 2024 13:10:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=catern.com; h=from:subject:in-reply-to:references:mime-version:to:cc:content-type: content-transfer-encoding:cc:content-type:from:subject:to; s=s1; bh=Tetz0QtBVVjt72tqgudRvXlTtUURU194pqxm4ZfFml8=; b=Skh8b2saOWXLm5X3JFSCypnwrYQcI+itop8+k0t7E+KplnX1uuMqGMudbgtd5sdZqLIZ 82Mr0SMNZvMOGoFVriauqYyUvfcdBcVXOGuvNe8tUKFYE97X4hb9lYRT4LxGwtQNvx+OTa xF4BA/gigjJEOY7q53w0qEBJjs9TcSd5y/OTbbNjtMlH5tq1gQrm+GK+onPkzal+DAuWR8 DRcr4cY0brSReL075JakB2O7In2xJc9BwMCzq88JBNEJsay3ZSeKji5/gjGYQYNA7t5kIC gXAlNH75bgZFIVAJutJ5gVLEMaljlqR5X+ERtD8FiP8U0n3HObzE6u3Jxn9KSQpQ== Original-Received: by filterdrecv-7b48875b86-t7jpc with SMTP id filterdrecv-7b48875b86-t7jpc-1-668585EE-9 2024-07-03 17:10:06.740641442 +0000 UTC m=+5596171.131730789 Original-Received: from earth.catern.com (unknown) by geopod-ismtpd-24 (SG) with ESMTP id _y6jP341QXaGsTScQk3BlA Wed, 03 Jul 2024 17:10:06.635 +0000 (UTC) X-Comment: SPF check N/A for local connections - client-ip=127.0.0.1; helo=localhost; envelope-from=sbaugh@catern.com; receiver=gmail.com Original-Received: from localhost (localhost [127.0.0.1]) by earth.catern.com (Postfix) with ESMTPSA id 23F436014C; Wed, 3 Jul 2024 13:10:06 -0400 (EDT) In-Reply-To: ("=?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?="'s message of "Wed, 3 Jul 2024 17:03:09 +0100") X-SG-EID: u001.v6RTqHFpv1T6krEot6UFAVAJmQ+4h1t8/TfqqE2B07MBsoKbzINi7KIWv1MbjluQ1m0wYWQr3vrdrHbyb88Ty52TuFsKDoZp/KLSf36d4b3zNp3ZpS9xO3epbwD4jpe+QHLJwEUhvMQRVqeRtjUrLtJrz2MOTdpsvc5uSnli1JCAPSRPm4F69PQRnzCqGjCTbQrUapNYusGT+JPwtmDtow== X-Entity-ID: u001.oW4JupFKOzCccZAQN2OOFQ== 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:288328 Archived-At: Jo=C3=A3o T=C3=A1vora writes: > On Wed, Jul 3, 2024 at 4:12=E2=80=AFPM Spencer Baugh wrote: >> >> Jo=C3=A3o T=C3=A1vora writes: >> >> > On Wed, Jul 3, 2024 at 3:47=E2=80=AFPM Spencer Baugh wrote: >> > >> >> Do any of these seem acceptable? >> > >> > No, sorry. >> >> When you originally said the patch was OK, how did you think the >> project-mode-line worked? > > I said the idea was OK :-) I forgot that Eglot's own display of > the project name is not only that. It has more functionality: > the project name is only a label. So what I thought would be a mere > replacement and is actually not. To be clear, I want a configuration which will have project-name from project-mode-line and no project-name in the eglot mode-line entry. So that functionality will need to be moved anyway, no matter how we solve this problem. Are you fine with including the server menu in the main menu? This is something we'd want in both the "make it work by default" or "make it customizable" solutions. >> >> But I don't want to delegate the responsibility of solving this probl= em >> >> to the user, I want the problem to just be gone: the entries should j= ust >> >> not duplicate project-name. >> > >> > This problem wasn't introduced by Eglot. >> >> Definitely, but it seems like it is best to fix it in Eglot. > > It's best to allow the user to choose, and Eglot doesn't have a way > to let the user choose (while project has). So let's give them one > in Eglot. It's better still to both allow the user to choose and *also* have a default which works right out of the box. Those are two separate things which we can do separately. But allowing the user to choose adds a bunch of new customization points that need to be maintained. I don't understand why we would add these new customization points when we already are low on maintainer time for Eglot. I anticipate adding these custosmization points would have lots of small bugs. I'm all for doing it eventually, but making things work by default also solves my problem, without adding new maintenance burden.