From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Add cl-defgeneric project-name; first use case eglot Date: Mon, 21 Nov 2022 16:17:57 +0200 Message-ID: <83pmdg2xyi.fsf@gnu.org> References: <86zgcll1le.fsf@stephe-leake.org> <83a64k4fru.fsf@gnu.org> <87sfica02a.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14297"; mail-complaints-to="usenet@ciao.gmane.io" Cc: stephen_leake@stephe-leake.org, emacs-devel@gnu.org To: =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Nov 21 15:18:41 2022 Return-path: Envelope-to: ged-emacs-devel@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 1ox7d9-0003Nj-Hv for ged-emacs-devel@m.gmane-mx.org; Mon, 21 Nov 2022 15:18:39 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ox7cL-0007i5-PQ; Mon, 21 Nov 2022 09:17:49 -0500 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 1ox7cJ-0007hJ-OA for emacs-devel@gnu.org; Mon, 21 Nov 2022 09:17:47 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ox7cI-0008BV-SW; Mon, 21 Nov 2022 09:17:46 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=BOWy0yt+FhRH9vqacu273WumrE+JslOTcD02G0Yor8s=; b=qXDmsIv6ApBgNcWlZzOP TI/T8vihOXxsCAvX8nj+eS0G6Cxy5W36QCWdaNohw6KRrAEVVSiOtzHVGIoVRsTs89LcFS9RdXyG1 XeocJYC1LELgTRVFy0Z13iueEAIyKUZVCIku4vP7/w3necuHBTIkT/f84WCGEqHunv16cHADXldV+ ra9Kn7L8dgGOOUcOtEJIfsw6LEyuV5zqKvmhtbdw66JBabPfUKoyP2NuC8AFnfRWTRwdV3hSKCKR0 Bf438wIYgK9FWP3a0YACBirjzn6ux6Dho5TU7veB/S+9Fg/J4phkAgu5wX2OqlxwWTGLILeQGD6zc my4+/g0KlnNMkQ==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ox7cH-0004GR-9X; Mon, 21 Nov 2022 09:17:46 -0500 In-Reply-To: <87sfica02a.fsf@gmail.com> (message from =?utf-8?B?Sm/Do28g?= =?utf-8?B?VMOhdm9yYQ==?= on Mon, 21 Nov 2022 13:50:37 +0000) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:300299 Archived-At: > From: João Távora > Cc: Stephen Leake , emacs-devel@gnu.org > Date: Mon, 21 Nov 2022 13:50:37 +0000 > > Eli Zaretskii writes: > > > So Eglot should allow customization of what is shown on the mode line. > > Surely Eglot could offer that: a boolean option controlling whether to > show the project's name in the mode-line. Or a more sophisticated > eglot-mode-line-format in the style of e.g. flymake-mode-line-format so > that multiple other things can be shown or hidden. > > As to where Eglot gets the project's human-readable name from, I can't > think of a place other than project.el. As Stephen explained, currently > Eglot guesses it from the name of the root directory, and that guess > isn't suitable 100% of the time. Why are you thinking only about changes related to how the project's name is spelled out? What if someone would like to make changes in Eglot's mode-line indication that have nothing to do with the part of project name? You see this as a request to customize project.el for some reason, whereas I see this as a request to customize eglot.el, because the mode-line indicator is produced by Eglot, and the fact that it currently shows the project name in some form is not carved in stone.