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: Sat, 29 Jun 2024 13:05:41 +0100 Message-ID: References: <86wmm9jfk7.fsf@gnu.org> <86o77kjk87.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="18809"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Spencer Baugh , 71823@debbugs.gnu.org, Dmitry Gutov To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jun 29 14:08:32 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 1sNWsa-0004es-JG for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 29 Jun 2024 14:08:32 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sNWsD-0007p0-QX; Sat, 29 Jun 2024 08:08:10 -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 1sNWs8-0007ne-6P for bug-gnu-emacs@gnu.org; Sat, 29 Jun 2024 08:08:05 -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 1sNWs6-0002mn-Hd for bug-gnu-emacs@gnu.org; Sat, 29 Jun 2024 08:08:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sNWs5-0005xj-S0 for bug-gnu-emacs@gnu.org; Sat, 29 Jun 2024 08:08: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: Sat, 29 Jun 2024 12:08: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.171966282322832 (code B ref 71823); Sat, 29 Jun 2024 12:08:01 +0000 Original-Received: (at 71823) by debbugs.gnu.org; 29 Jun 2024 12:07:03 +0000 Original-Received: from localhost ([127.0.0.1]:37272 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sNWr9-0005wC-CB for submit@debbugs.gnu.org; Sat, 29 Jun 2024 08:07:03 -0400 Original-Received: from mail-lj1-f180.google.com ([209.85.208.180]:48358) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sNWqz-0005va-VB for 71823@debbugs.gnu.org; Sat, 29 Jun 2024 08:07:01 -0400 Original-Received: by mail-lj1-f180.google.com with SMTP id 38308e7fff4ca-2ec5779b423so13718571fa.0 for <71823@debbugs.gnu.org>; Sat, 29 Jun 2024 05:06:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1719662753; x=1720267553; 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=SSf9vagUNShnqc1/awTxXsHv3qz1KMLj0GErDScZKCo=; b=m6YMTm1AhponRv6Ovq3V24s+Pm/ck3ZAk6u0+VUlahPS/KWpf+43Dy8ZxM3r5yrv80 QmfPvXJqBDhXax7sJIDma0xP0UpZeOxwN7nua76CZg51qNkrsHqadOM8O780VkTrg7Pq XMAHOYGI76V0e56OSgHTD2dK8mYfPr3vfU5H2fKk3l028yC/xJcFcKmuDqy8VCDfZ+qU mrIZZwuEQoqBmzF1OXWA06oY5e/Q1gh2BjT2nLRRKZkTaPwKPjVDzi55gy4Ax3WdUYlH W+ysKIy/YqkIlzofUlmE4lrlyqktQ0CiLQTw6U3fHqXZKp9D8GSU/YGCnZhvX8He9kuR uvtg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719662753; x=1720267553; 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=SSf9vagUNShnqc1/awTxXsHv3qz1KMLj0GErDScZKCo=; b=nxJs/FZiGxc+GaocSYYTpNJ/4ADp3XCK/On9SPe+A5G9X4wCxnK7X16n8iqCJOmmrF Oy0jebjGbVwmWJKMntNAzNafnFWXrEKPqJwEYfdbRWPBVgBJoGLv0evb/yYDlQoLHKWI LtWbGDRLulAv8WaDAH0+LXHn0gqpKEgsMdCGJ2qiP5kIPH30WxX6OnBy4jFjXJuhIx5N sSvZQuuLjEVM7Zv6EbVXPkmwMrEuNrRimS5oFhruAlhwBkfKgo0ldHL1EonadLVOzVWk KJcVwWC9mhcq3AAvWaFpG8bDPOyqGX7i2HiTL7DXhMYrO+XE1Xyks0iyU+t1NBsV15DO QpEA== X-Forwarded-Encrypted: i=1; AJvYcCVb4DQmmLZDAH5+S/DJjXm89a+9U9Vw5IG7fYGz6vOiKCS7gQU9F8v24Osee2JOVVqBnFWxwCl8Ez2XSixw82gD57Jb8/4= X-Gm-Message-State: AOJu0YwqizT25m4l0dCHoSNtolLx1BHAZUiQ0+9Nzwr6/SOw1XyUt8ei S6Qbb1CG3Ypaj5HxRoROr5TQJhgbw9FgcqmFsRde40F7Bt7Cfvpnp2D5XbosFKwvWF985V4QOqa 01YUCKIscJDmXJBKVMMnapsV50QQ= X-Google-Smtp-Source: AGHT+IGK+XSRj0sR/Dm9D52kUK+MtfDnfZobOMzwcBXG3qAEGwNP1F+8o1kfbYMW2/vg61NbZl+o+6wIKsBM36nBZjM= X-Received: by 2002:a05:6512:3b88:b0:52c:e180:4eba with SMTP id 2adb3069b0e04-52e8272ab82mr805430e87.62.1719662752727; Sat, 29 Jun 2024 05:05:52 -0700 (PDT) In-Reply-To: <86o77kjk87.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:288111 Archived-At: On Sat, Jun 29, 2024 at 8:12=E2=80=AFAM Eli Zaretskii wrote: > Why not turn the table and consider this to be a problem of > project.el, to be solved there? After all, the project-mode-line That could make sense (and this is nowhere near a serious problem IMHO), but I have to admit that saying the onus being on Eglot is also defensible. The project name is eminently project.el property after all. What Eglot is showing there is the "project nickname": it happens to coincide with the project name for now but in rigour it would be a mnemonic for a "project/language" tuple. So it's not exactly the same thing. I've just never found a good way to express that. > But my goal here isn't to make eglot-mode-line customizable, it's to add = code to make the eglot mode line > automatically avoid duplicating project-name. I understand now, but I still think it's complex and makes the future eglot-mode-line-format implementation harder. In that mode-line-format the 'eglot-mlf-project' symbol could come paired with an optional 'eglot-mlf-project-maybe' that does the check you wnat. Jo=C3=A3o