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: Fri, 28 Jun 2024 18:49:14 +0100 Message-ID: References: <86wmm9jfk7.fsf@gnu.org> 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="31228"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Spencer Baugh , 71823@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jun 28 19:51:23 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 1sNFko-0007uh-Dp for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 28 Jun 2024 19:51:22 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sNFkX-00086L-TG; Fri, 28 Jun 2024 13:51: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 1sNFkV-000865-26 for bug-gnu-emacs@gnu.org; Fri, 28 Jun 2024 13:51: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 1sNFkU-0005R4-7m for bug-gnu-emacs@gnu.org; Fri, 28 Jun 2024 13:51:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sNFkU-0005Fb-5t for bug-gnu-emacs@gnu.org; Fri, 28 Jun 2024 13:51:02 -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: Fri, 28 Jun 2024 17:51: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.171959703520122 (code B ref 71823); Fri, 28 Jun 2024 17:51:02 +0000 Original-Received: (at 71823) by debbugs.gnu.org; 28 Jun 2024 17:50:35 +0000 Original-Received: from localhost ([127.0.0.1]:46311 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sNFk2-0005ET-TN for submit@debbugs.gnu.org; Fri, 28 Jun 2024 13:50:35 -0400 Original-Received: from mail-lf1-f52.google.com ([209.85.167.52]:43410) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sNFk0-0005E7-PO for 71823@debbugs.gnu.org; Fri, 28 Jun 2024 13:50:33 -0400 Original-Received: by mail-lf1-f52.google.com with SMTP id 2adb3069b0e04-52e7ad786dfso964815e87.1 for <71823@debbugs.gnu.org>; Fri, 28 Jun 2024 10:50:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1719596966; x=1720201766; darn=debbugs.gnu.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=qthbejtftFx6b45PmhDN0knlzEeD+aEDyVK89Zjgg54=; b=f7K7Ml3/bRXCljFrFso1IY4aaQaVkiD5TQqH0aPfR9TF+F+3i9bpOj0nJSB1bTI1eO r4GhwkTALJE7hsg6VCXUkDmmU29K+b/StYMPUzmcUAQxymq/03M8d2A6p97Rk/bo0DiE 1q7QDlhuG/AkjgCRIYZf1osvUtEtUBzMVn7SKI+0doRAPW1zhphcvOrvZEfnFsTi/wmO QZl6WKmde5OylKW/tbb8f9a9siTdwO4AF1f8Rvqtj8Ds8Y3WbVC/qDB7/aCnRud2B5RL 5dyWjNy62tTJ+ZDc/n7Qivbi3nNBWiXc61B5ps2tvwAXmlhO5BsMUQR0rDfIyLlIMSOp U1JQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719596966; x=1720201766; h=content-transfer-encoding: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=qthbejtftFx6b45PmhDN0knlzEeD+aEDyVK89Zjgg54=; b=frAULGFWwTIX3Lvzywh2E/zgNqnDhhTf/tyjS2JpurwpEFVCkWW8T4yluJxLPBJ/OO BOx7TtV4x+bbew3mvkGNgtUtMMMcDhvcFnY0HFrHMXIXR6tEoKpFJ56Yno/9jP04ul1V mAN0KqGivIvhP+lG4A/Y/WGQ+l+S5S9DyfumFwoASsk8Y4UtGnR2ADyP8wuf0QXMHXcg 1Qh7PTbxUl85CT/DJPVuPoYwbgZlq86+YxgTrtlicduTVO3qZuLCnJLc7xEu1nbEoSl/ YO/trdN4d+VZz8BGK2XTKYTbyFyRU7JI+Sj6Xkwy+bC02Pksj6kiRuV2CGZgatlV5EUU /kYA== X-Forwarded-Encrypted: i=1; AJvYcCUu6sS/Ek7hAgSiW6oGRBmQDeJwl/Y37tMxFvwI/daukgD/zT9cYEVo+pV3m3Xai9t5GoOdtAfEl99cAM8XPyIHjng9jxM= X-Gm-Message-State: AOJu0Yx+qjgRmsAUsUaAAcDnNBYJUZ1aK+68J9iQDOSibZRTzefxa52Z ND1Bsa1eC39UbRmYplyFJYvsxAlH84BBMhrfJ0FvGDXPAsGsgz98TcnQdMVXkYZ5s2/pDo6m9ho OI8ivIykmb1wH9Vys1daZbiCmJZQ= X-Google-Smtp-Source: AGHT+IFmzaDVDl+nxxqvei8D/UJfP9Cc0MKJOm2bR6qzQ4yw/Pxvfv6tbSiG5ZKSr/V5Hr7apkHX3CFm3aCph2BWv60= X-Received: by 2002:a05:6512:39c9:b0:52c:884a:96c7 with SMTP id 2adb3069b0e04-52e7b8ec02dmr885481e87.17.1719596966085; Fri, 28 Jun 2024 10:49:26 -0700 (PDT) In-Reply-To: <86wmm9jfk7.fsf@gnu.org> 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:288078 Archived-At: On Fri, Jun 28, 2024 at 3:41=E2=80=AFPM Eli Zaretskii wrote: > Jo=C3=A3o, any comments? Tiny switches for these customizations is not a good idea. It's complex, hard to find, and doesn't scale well For this and other use cases we need something more robust like in many packages, a user-customizable eglot-mode-line-format. You can e.g. use flymake-mode-like-format as an idea. Of course, the default value of eglot-mode-line-format would keep the Eglot mode-line exactly as it is. The default value would be something like ("[" eglot-mode-line-menu ":" eglot-mode-line-project-name eglot-mode-line-outstanding-requests "]") To fix this problem, users would just remove eglot-project-name from the va= r Many users want to get rid of the number of outstanding requests, this would help them too. Yet other users want to put the eglot mode-line menu somewhere else but without the brackets. You get the idea. Here's the Flymake default value, btw. Jo=C3=A3o flymake-mode-line-format is a variable defined in `flymake.el'. Its value is (" " flymake-mode-line-exception flymake-mode-line-counters) Mode line construct for customizing Flymake information. This variable may be risky if used as a file-local variable. You can customize this variable. Probably introduced at or before Emacs version 28.1. [back]