From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Newsgroups: gmane.emacs.bugs Subject: bug#71823: 31.0.50; project-mode-line and eglot duplicate project-name in mode-line Date: Sun, 30 Jun 2024 01:25:32 +0100 Message-ID: References: <86wmm9jfk7.fsf@gnu.org> <86o77kjk87.fsf@gnu.org> <17183c60-1733-4938-9a85-f3351c87bcb9@gutov.dev> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000077b1a6061c1085d0" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29016"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Dmitry Gutov , Eli Zaretskii , 71823@debbugs.gnu.org To: Spencer Baugh Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jun 30 02:27: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 1sNiPZ-0007Kn-Qm for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 30 Jun 2024 02:27:21 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sNiPI-0000oe-7g; Sat, 29 Jun 2024 20:27:04 -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 1sNiPG-0000oI-R5 for bug-gnu-emacs@gnu.org; Sat, 29 Jun 2024 20:27:02 -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 1sNiPG-0006qT-J6 for bug-gnu-emacs@gnu.org; Sat, 29 Jun 2024 20:27:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sNiPF-0006lg-VK for bug-gnu-emacs@gnu.org; Sat, 29 Jun 2024 20:27:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 30 Jun 2024 00:27: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.171970721425999 (code B ref 71823); Sun, 30 Jun 2024 00:27:01 +0000 Original-Received: (at 71823) by debbugs.gnu.org; 30 Jun 2024 00:26:54 +0000 Original-Received: from localhost ([127.0.0.1]:54174 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sNiP8-0006lH-7V for submit@debbugs.gnu.org; Sat, 29 Jun 2024 20:26:54 -0400 Original-Received: from mail-lf1-f49.google.com ([209.85.167.49]:50633) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sNiP5-0006l2-SX for 71823@debbugs.gnu.org; Sat, 29 Jun 2024 20:26:52 -0400 Original-Received: by mail-lf1-f49.google.com with SMTP id 2adb3069b0e04-52cdbc20faeso2599640e87.1 for <71823@debbugs.gnu.org>; Sat, 29 Jun 2024 17:26:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1719707145; x=1720311945; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=Nk0c1efJ8RNUzWTZ59owQlo85k7sIpAbAw6WynxIYHE=; b=VadXe2navgYLqDy+SF/NoWn7J3/ab12eI3t72ydJhcdP1+dX1iXzr96dIHD2cofh9R tjJb2wW2Jso13FULstcJgvKmXKYpVu6bObyUXZaRoaWVPN8QUl+3y1gqupEvuo/iWGFe u/F8Vt5WYn34M9SIZyNF+w8Esn56myHZanqRwlnO1XnnNs61BYEVWkpVub28OI6N5r3y Mxtud7wAaBYyPcpaVHPbwVB7ZJrC5wenHbF5nXwVoowhVBqZ70u+FYPJcN/WXN52EVXS gWD50YLclmuMyAVSWTHPDiAMh8B4vUVEsNjT2O89BGo4pRRoFGgoMtF5L6Jc4ZvZCHUd 6D9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719707145; x=1720311945; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Nk0c1efJ8RNUzWTZ59owQlo85k7sIpAbAw6WynxIYHE=; b=wPdUCvh3LSsiUy5s+FBm8G1ul0EnhEB+K48IGzKH+Cm6p/riNg7NVLvDmoBEQSTU+U akSRdEAdF+LEZc2mpEyCbsx6akRg4sLthVV7IzyY7mOMcnNnVj/ZarIAj31r/LGBcdst 0jClcJzQD9maGpnbehDL/QM5HCAbwIUfw5L+gmiWloXroqG/ttgfcnWK5tsubWz9TMUD kLri4koYeiTWygtwhDDqszA1QIkILNQXS1BTe+pOAcf92pNn2tc8TmK+elmYRbi5adM6 kMVqD4nSKI1KEAtUUXlvM49b1O3YVuXl0SIfen/CLxMoKewE1cLd1A5kRombQ0msZcLa CyKA== X-Forwarded-Encrypted: i=1; AJvYcCWZeJXaZN41ix0iYirolhxwzDrFuQFO616quFXkXvtJeU1nEn8ReIRoCzL0hjADyYQkpyx71ozalaf2jICWLOQL2FgHzp0= X-Gm-Message-State: AOJu0Yxv/dC6epCmdEETjFEVSOjjogbYzjib07YgQQ2pBhEEZ9s3W0cX WueQghOWgLqlQoClwYgaaiBiFp/Bho88rmS19HooqTBcBex2OpBT9+HJkwMl61AsLI7pLDoiev3 RZr6OU3tZ8RBxE9i6/1RS2cJ+POA= X-Google-Smtp-Source: AGHT+IFdJYmwXYBbvxQ9eBxg77p+DmpxPUMsuTXr+lTPGjYfuDWKhxpQykopw0PVcAXs3wOtZxrXeFpfDhG8GtUi89k= X-Received: by 2002:a05:6512:61b:b0:52c:ea28:8442 with SMTP id 2adb3069b0e04-52e82666472mr1218509e87.20.1719707144530; Sat, 29 Jun 2024 17:25:44 -0700 (PDT) In-Reply-To: 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:288141 Archived-At: --00000000000077b1a6061c1085d0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sat, Jun 29, 2024, 15:24 Spencer Baugh wrote: > Or, here's an alternative idea, more aggressive: > > What if Eglot just sets project-mode-line=3Dt in eglot-managed buffers, a= nd > removes the project-name from the Eglot entry entirely? > > Then the language identifier would be the major mode, the project > identifier would be project-mode-line, and the eglot status indicator wou= ld > just be for the status of the server. > Works for me, it's in line with Eglot's policy of setting other modes when managing buffers. Show a patch. But also, my idea of eglot-mode-line-format should be alsoh considered. AFAICT there no big technical hurdle, it's just relatively boring work and some naming decisions to make. And as I mentioned, it would fix more issues than just the one at hand. Jo=C3=A3o > --00000000000077b1a6061c1085d0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On Sat, Jun 29, 2024, 15:24 Spencer Baugh <sbau= gh@janestreet.com> wrote:

=
Or, here&#= 39;s an alternative idea, more aggressive:

What if Eglot just sets project-mode-lin= e=3Dt in eglot-managed buffers, and removes the project-name from the Eglot= entry entirely?

Then th= e language identifier would be the major mode, the project identifier would= be project-mode-line, and the eglot status indicator would just be for the= status of the server.

Works for me, it's in line with Eglot'= ;s policy of setting other modes when managing buffers. Show a patch.=C2=A0=

But also, my idea of eg= lot-mode-line-format should be alsoh considered. AFAICT there no big techni= cal hurdle, it's just relatively boring work and some naming decisions = to make. And as I mentioned, it would fix more issues than just the one at = hand.

Jo=C3=A3o
--00000000000077b1a6061c1085d0--