From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Spencer Baugh 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 10:24:09 -0400 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="0000000000008e4a5b061c081e6f" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23404"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Dmitry Gutov , Eli Zaretskii , 71823@debbugs.gnu.org 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 Sat Jun 29 23:47:18 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 1sNfug-0005sr-1e for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 29 Jun 2024 23:47:18 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sNfuS-0002f5-Ke; Sat, 29 Jun 2024 17:47: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 1sNfuR-0002bp-8J for bug-gnu-emacs@gnu.org; Sat, 29 Jun 2024 17:47: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 1sNfuQ-0004Ge-VO for bug-gnu-emacs@gnu.org; Sat, 29 Jun 2024 17:47:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sNfuQ-0001yf-Dt for bug-gnu-emacs@gnu.org; Sat, 29 Jun 2024 17:47:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Spencer Baugh Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 29 Jun 2024 21:47: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.17196975977556 (code B ref 71823); Sat, 29 Jun 2024 21:47:02 +0000 Original-Received: (at 71823) by debbugs.gnu.org; 29 Jun 2024 21:46:37 +0000 Original-Received: from localhost ([127.0.0.1]:53885 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sNfu1-0001xo-3Y for submit@debbugs.gnu.org; Sat, 29 Jun 2024 17:46:37 -0400 Original-Received: from mxout1.mail.janestreet.com ([38.105.200.78]:34759) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sNftz-0001xc-Lw for 71823@debbugs.gnu.org; Sat, 29 Jun 2024 17:46:36 -0400 Original-Received: from mail-ed1-f72.google.com ([209.85.208.72]) by mxgoog2.mail.janestreet.com with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) (Exim 4.97.1) id 1sNYzz-000000038yE-3PWY for 71823@debbugs.gnu.org; Sat, 29 Jun 2024 10:24:19 -0400 Original-Received: by mail-ed1-f72.google.com with SMTP id 4fb4d7f45d1cf-57cad3fa0a1so1510217a12.1 for <71823@debbugs.gnu.org>; Sat, 29 Jun 2024 07:24:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=janestreet.com; s=google; t=1719671058; x=1720275858; 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=xBfRoQuUVFLkwQgxHSf7it/LOJCJrnezi7PCoXshhs4=; b=w0qu9T9LAri5Kdwgud88a3GGJU3hp4SOreJAab7EawV0kt89V7A9hMWxf4ES9MhSBs dSnpJXf1BfNtSqAKtYPqgEGA8wWGJBVwIF/3JAiEX7h5i6CW/JQD1E5u4VZ+nzKoKWNm uu2Tye85dGL8CQFWOM3cYVHEMzHIIgpzCYqsY= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=janestreet.com; s=waixah; t=1719671059; bh=xBfRoQuUVFLkwQgxHSf7it/LOJCJrnezi7PCoXshhs4=; h=References:In-Reply-To:From:Date:Subject:To:Cc; b=wz3B6ccvqYh037JmOPlyN1rTXaGtYa+OL1+98vYcUI5Asarra5dfxoDHHCcAaqsn1 0vhegLuhnkAvnFXt/BPIpNmVai2YxTPvEM3hC7WsaGjhgpWCZMyRR9z/dYCRi54HIN zJ0meH74A5dUvZlaxgE9MOsHPdUkW0ik/3RcY7Ypwpih/ZVVIn62PuuVDRLmjTBMMA Qs+Tu325Bo0Hy6HK30UwGWXzjdXHTWXAYGGVVNW+DYOeHB2sQrhnfcXE7yJQHrVn24 dWnGuFye/x5N4AgwEOmYhdtWFT3gWq5nsVmsbmckbTP/efD5ST8RAgw9rBETwLbOhN N0QNp3YOXGMAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719671058; x=1720275858; 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=xBfRoQuUVFLkwQgxHSf7it/LOJCJrnezi7PCoXshhs4=; b=D4NbCCehIjiW9Ad1ndnrx04mERRVbcHNHU13zzEG4oAPz+WDiNoBQ8h33h89PRw7LC GQFFp8jr6YCd+lkBicw9yJLVDIuGJUH2n6tYvfUd8wxl2V3LbqPgluDXz6Krj/ijLFaK RoFagA7KE1xj5OjPgghsZ71S0evzwNldNrYm+T6hECB0ACqxz7yqQixi9X3+TzMlIygH sVlqtFpmHJ0RSTZubfXYUYGWHU2gFW7HzfBmVhP5+SChaDqZyM5ap2tFgooDU55eSa8+ bC9ZsrIGJISLMxvMmi/5dODkXGGnV4fRoL56vyMK2hXXWgamQchMYQ3uSblar0lVIzar 2mew== X-Forwarded-Encrypted: i=1; AJvYcCX1m5rfdWrxAb7LCj7AM2551xN2N55P5t89NSOvrlUn4VPPt8RiXLdUQpFsft+rQb4WWsUTCP5WR9rrzy/UklGKgDeLCY0= X-Gm-Message-State: AOJu0YwCEdMcgv+TecgWM+gDOO9YGka0hb4kVRQsZOGJSgJoJuNBE6TT DNZRl72CNEIdFm0DmJl4JtnTNVAr6REuX9ExM+AmeT6fBmMoNjzmvjShbP/Y48QDQwG+QB2JPfZ 1U1prhTXGkA/KfiPvpMsvDcvnZ6c3NS1J1zeF8HtOiYgfqaonzZOINAJxidbXDy8AmA/Yja0xGo et5g6coxRPdmb6NE+WF6jCWGWA93BIGtvVcA== X-Received: by 2002:a17:907:988:b0:a6f:4fc8:2658 with SMTP id a640c23a62f3a-a751440b8eamr75196966b.14.1719671058662; Sat, 29 Jun 2024 07:24:18 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGDAOma2qWrjNN4O5Kw0lkHz3/O5+CUTeE89cO9nP3lacC16HryWN+C+1k8OR0pelnCfj+/LRHl2I2Cc5Hks+E= X-Received: by 2002:a17:907:988:b0:a6f:4fc8:2658 with SMTP id a640c23a62f3a-a751440b8eamr75195566b.14.1719671058214; Sat, 29 Jun 2024 07:24:18 -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:288135 Archived-At: --0000000000008e4a5b061c081e6f Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sat, Jun 29, 2024, 8:41=E2=80=AFAM Spencer Baugh = wrote: > On Sat, Jun 29, 2024, 8:21=E2=80=AFAM Jo=C3=A3o T=C3=A1vora wrote: > >> On Sat, Jun 29, 2024 at 1:17=E2=80=AFPM Dmitry Gutov = wrote: >> >> > Either way, it might make sense for Eglot to check out that project.el= 's >> > variable and choose the format accordingly. >> >> Yes, and that's what the proposed eglot-mlf-project-maybe element to >> the custom variable eglot-mode-line-format would do. >> > > In the new variable, I think eglot-mlf-project-maybe should be the > default, since it's essentially always the better behavior. > > If you agree it should be the default in the future customizable variable= , > can we just make the change now when it's not customizable? > Or, here's an alternative idea, more aggressive: What if Eglot just sets project-mode-line=3Dt in eglot-managed buffers, and 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 would just be for the status of the server. > --0000000000008e4a5b061c081e6f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable



--0000000000008e4a5b061c081e6f--