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.bugs Subject: bug#73280: 30.0.90; Eglot: eglot-workspace-configuration might not be found in .dir-locals.el Date: Mon, 16 Sep 2024 22:17:01 +0300 Message-ID: <861q1jcssy.fsf@gnu.org> References: <86ttefde1d.fsf@gnu.org> <86a5g7cvnx.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17569"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 73280@debbugs.gnu.org, joaotavora@gmail.com, monnier@iro.umontreal.ca To: Troy Brown Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Sep 16 21:18:06 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 1sqHEZ-0004M2-Oq for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 16 Sep 2024 21:18:04 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sqHEO-00066F-1w; Mon, 16 Sep 2024 15:17:52 -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 1sqHEM-00063X-9X for bug-gnu-emacs@gnu.org; Mon, 16 Sep 2024 15:17:50 -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 1sqHEL-0005HI-PD for bug-gnu-emacs@gnu.org; Mon, 16 Sep 2024 15:17:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=References:In-Reply-To:From:Date:To:Subject; bh=vzJqNitKN8pmGCJecZpZjAI/LHpjm3QyaJkS/U4PU+I=; b=uNGBqlo6OFm6tq/gf7wLZCPLu35/dpcCsg+f4rTWS17QZkpWiQhzwrp5kQJja/DosSk42RBG3Y0baMfii1voVYNU7IuNq41UTQ5Zmt/8kI14ECcv4IfzQz1WZcp2tptPBKEjqx0AdCzDvbPCGbQE9mBJDGVlHkUvVJ1yikTOSzd6pCR/SOujB6baLnEb6dSQ8AMQFoHbMMOfwuWe9aixKUm6pijTj4y7c86XPeK8xeKlj6MEjsm6yHxbLWpY+ttg3zvbswFSX9nr5BU8h76IwxMfF/iLqXC0tszGUNhEiWgVpE/ups3nQocgcM+oXPdh0DCexlrpCxPcWNF7T/5gnw==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sqHEY-0002gn-20 for bug-gnu-emacs@gnu.org; Mon, 16 Sep 2024 15:18:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 16 Sep 2024 19:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73280 X-GNU-PR-Package: emacs Original-Received: via spool by 73280-submit@debbugs.gnu.org id=B73280.172651426910314 (code B ref 73280); Mon, 16 Sep 2024 19:18:02 +0000 Original-Received: (at 73280) by debbugs.gnu.org; 16 Sep 2024 19:17:49 +0000 Original-Received: from localhost ([127.0.0.1]:53295 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sqHEK-0002gI-Nc for submit@debbugs.gnu.org; Mon, 16 Sep 2024 15:17:49 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:51016) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sqHEH-0002g1-WC for 73280@debbugs.gnu.org; Mon, 16 Sep 2024 15:17:46 -0400 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 1sqHDx-0005E0-VC; Mon, 16 Sep 2024 15:17:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=vzJqNitKN8pmGCJecZpZjAI/LHpjm3QyaJkS/U4PU+I=; b=ZbmffgxO/jS+ 5ESe3qTMSxBdPe8o49agiPy2SRgFR/dkb5cOjygfE9OKZ9FIDxC2KY1G9JcAKluY7NrmUVu/YB6IE T4uw8D6pjHCldaSubkp0CGtjsq+HdYXsZjgdsjCoF+fk/Dvx2W3YjAh0kV9NkdSrDnP5O4Ai9vGuU 7oZV92mQ98HDM/tPdHD9ea6EFuezqb8UOuLtWsNBe0UenuDffACuu6JkF1KA2Wdi4wEpBMjdcQgdl jgveQh4p0ov0AQVILxs2mEKJ7swBmvn1Lye/4nfkAwJd37EZ9EtS9uAXbIZvxu8BvCnwYZhcpl/LG A0WdRovouBcJShAKX5aZwA==; In-Reply-To: (message from Troy Brown on Mon, 16 Sep 2024 14:53:53 -0400) 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:291910 Archived-At: > From: Troy Brown > Date: Mon, 16 Sep 2024 14:53:53 -0400 > Cc: joaotavora@gmail.com, monnier@iro.umontreal.ca, 73280@debbugs.gnu.org > > > With the emergence of the *-ts-mode modes, we need to adjust our > > intuition. We decided that having foo-mode settings cover foo-ts-mode > > as well as much as possible is an advantage, not a disadvantage. So > > our intuition needs to follow suit. > > > > That would be fine if this was isolated to only "ts" vs "non-ts" > modes. Another example is "typescript-mode". In order to configure > the server, you have to use "js-mode" in .dir-locals.el. Why? > Because it's the first one in the list. Isn't Typescript a variant of JavaScript? > I proposed in my last response a mechanism where you could specify a > configuration for any of the modes associated with a server and have > it applied, rather than ignoring a configuration if it wasn't > explicitly specified for the first one in the list. I'm not against it, I just responded to the part of your arguments which are more philosophical. > > > I don't think I'd agree with the first mode being representative, it > > > seems somewhat arbitrary. For instance, in order to change > > > eglot-workspace-configuration for "sh-mode", you have to set the > > > configuration in .dir-locals.el for "bash-ts-mode"...who would've > > > guessed this? > > > > I'd like to think that in a not-so-distant future, _everyone_ will > > guess that. Why not? it makes perfect sense to me. > > What is that? It's not consistent with the "foo-mode settings cover > foo-ts-mode", it's actually the other way around. Bash is a variant of a Bourne shell, isn't it?