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 08:41:43 -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="00000000000039f993061c06b0e2" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36770"; 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 14:43:20 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 1sNXQF-0009MW-Cw for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 29 Jun 2024 14:43:19 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sNXQ2-0001pt-IU; Sat, 29 Jun 2024 08:43:06 -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 1sNXPz-0001pO-GX for bug-gnu-emacs@gnu.org; Sat, 29 Jun 2024 08:43: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 1sNXPy-0000kh-7n for bug-gnu-emacs@gnu.org; Sat, 29 Jun 2024 08:43:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sNXPx-0006yM-SI for bug-gnu-emacs@gnu.org; Sat, 29 Jun 2024 08:43:01 -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 12:43: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.171966492126705 (code B ref 71823); Sat, 29 Jun 2024 12:43:01 +0000 Original-Received: (at 71823) by debbugs.gnu.org; 29 Jun 2024 12:42:01 +0000 Original-Received: from localhost ([127.0.0.1]:37366 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sNXOz-0006wY-3N for submit@debbugs.gnu.org; Sat, 29 Jun 2024 08:42:01 -0400 Original-Received: from mxout5.mail.janestreet.com ([64.215.233.18]:56093) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sNXOx-0006wI-8B for 71823@debbugs.gnu.org; Sat, 29 Jun 2024 08:41:59 -0400 Original-Received: from mail-ed1-f71.google.com ([209.85.208.71]) by mxgoog2.mail.janestreet.com with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) (Exim 4.97.1) id 1sNXOr-000000034Tj-2cbi for 71823@debbugs.gnu.org; Sat, 29 Jun 2024 08:41:53 -0400 Original-Received: by mail-ed1-f71.google.com with SMTP id 4fb4d7f45d1cf-584ef6c00c0so3503795a12.1 for <71823@debbugs.gnu.org>; Sat, 29 Jun 2024 05:41:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=janestreet.com; s=google; t=1719664912; x=1720269712; 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=QMPiIcXqBeyocIRzLSQ3xnpHJMMVaFSBPSRejP7PQdk=; b=hdcvqvZ5xyf9XDcKeIMHlkS4YvTn0/rqH6Oo1P/HtHHsPM714vxXVzU7rmcylLqfG9 UXNEVwwFOBe9I3gEHfEcNbdyHT67wqNamVmLZCv1GLqSGqwEc/jbr6mqf2uBALyCD3Ay 5stfpcDBxn5nw3jAIjRv0HLKr2rnTPUSmvIDY= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=janestreet.com; s=waixah; t=1719664913; bh=QMPiIcXqBeyocIRzLSQ3xnpHJMMVaFSBPSRejP7PQdk=; h=References:In-Reply-To:From:Date:Subject:To:Cc; b=uI4FL+Mjc22YYDyKdUKNK7NGJWe++Wh/r2zoTzT7Qa/FrPcnQC9hD4H/o+2KfxnmG BJI9bzoWKuAPtPwdF4o61K7M25dPufYO0KLAbQ6b1gUSMKsHCWrQE+ql9pzVzZLSjc p3rGhecRHcQwIf8rS1+xzD579ZeXE3LSuukg8RaZ1YC28jmzw84ce8Ubb2JQPhsah1 /Vv8PGuDvJFxCcpU9/4V3NKV5w258809MbjD4Lsk1IDt4IF8mzRhDzqHO+0wqweebJ B6KwrhfKtED0WFNwbUAJxBUXJ6Be//8psFGVxwkGoQfEzKEqbzK1AZGrMei7BviTb8 b9wDC87Fok2MQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719664912; x=1720269712; 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=QMPiIcXqBeyocIRzLSQ3xnpHJMMVaFSBPSRejP7PQdk=; b=FenS1T/llFdQNpjMGWNbCvqajVmD+gLXU22qUgs40d/1oNgAkuKfDgN6+b+E6wAUJ4 UYyJJcsTtvM/pa6Jt+8vqgMuy6VG3esIxDrwonwA74luA0aHMa91VvjpI+L/iVLKfJrE LLzv7cT5PqL8TP+axnZsMLGdBvZw85d8KebQNdU7phv1XkXlXXBFEyjAAi0s4uCy7my6 P2UVTUwRazSDTvHt0y55ZF0om5lkPEPxxtuINi5HNWWDGSpK/tiK6IYL8IjAovoiuji9 BbR9vKe36P13Nwgh/OMT6A0VHrBu6o960zjmjno0Hf8+uyD9twvk4/zuY9m51Eo/MC1q ZQhQ== X-Forwarded-Encrypted: i=1; AJvYcCWYPXcgpQxVwfjt+bmowQIYdsxgwi41yZJDSNcBgo30gBWX9VAkfZilSkW4tytZrb9mzY4PU2OYYMINHri40DzJ5NmLb3o= X-Gm-Message-State: AOJu0Yw7TfR1BNHEMk3xgdJMgYSJjwrVji5gbVQXiMPdBI+SISr9m0OG f/Ib5r1nZ+1/TEg1g4cutInnrZVpYamFZig6Eb0EsPBd8wFyAdB3FtUntX5iD7YX5xJKu3RpzzP iq/4RcB/tGAsdp+0L9ho6M9VcxMNvOcjJZK2wKWJwihrS+tiNH9PJidTWhiBxP3ZaPwlMyuL5Nn VfWFiIZxPbYmBAUUWWHP1yh5A/sw== X-Received: by 2002:a17:907:7ba1:b0:a6f:dbd1:b493 with SMTP id a640c23a62f3a-a72aee3ceb2mr415546866b.7.1719664912648; Sat, 29 Jun 2024 05:41:52 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG7cv43qwf9BbXpDVsO5WMXZ/p1cWDXing5RCa2RrCmptfh6ywqv6i5T/2XOw5zBb8hTvSDI4H8CZsTOdrUTmU= X-Received: by 2002:a17:907:7ba1:b0:a6f:dbd1:b493 with SMTP id a640c23a62f3a-a72aee3ceb2mr415545866b.7.1719664912227; Sat, 29 Jun 2024 05:41:52 -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:288123 Archived-At: --00000000000039f993061c06b0e2 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 w= rote: > > > 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? > --00000000000039f993061c06b0e2 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Sat, Jun 29, 2024, 8:21=E2=80=AFAM Jo=C3=A3o T=C3=A1vora &l= t;joaotavora@gmail.com> wrote:
On Sat, Jun 29, 2024 at 1:17=E2=80=AFPM Dmitry Gutov <dmit= ry@gutov.dev> 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 essenti= ally always the better behavior.=C2=A0

If you agree it should be the default in the future customiz= able variable, can we just make the change now when it's not customizab= le?
--00000000000039f993061c06b0e2--