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 21:15:14 +0300 Message-ID: <86a5g7cvnx.fsf@gnu.org> References: <86ttefde1d.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2765"; 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 20:16:10 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 1sqGGe-0000WB-3j for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 16 Sep 2024 20:16:08 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sqGGT-0001S5-JJ; Mon, 16 Sep 2024 14:15:57 -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 1sqGGK-0001RI-Ph for bug-gnu-emacs@gnu.org; Mon, 16 Sep 2024 14:15:49 -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 1sqGGK-0007fL-Gw for bug-gnu-emacs@gnu.org; Mon, 16 Sep 2024 14:15:48 -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=YFSVj6C3wrVno7WFkWK89dDiBWcA705XGEpemwIr1Xo=; b=N1BRCwpysj/m0gtQwuttp68uB7xpjQIV/Lx1BjXFdnUaAAOhafV/KGyK4P5NqtfeAfO0pM4L+Y+c46WxqKdVUPcd+hUTbIEXf59mh6xRJIP7ZySYUl5XuvEQTRwEa8rylDXlBiGORCUXUJE5P5o5VXafJFrss5B5V+gd52KfsiBJE9FQjiDIED84CFHM1/hRh7uIONsyzZOPj0QpYtZ9xnZcpxed6aJXnDOz4iJrpKk/cojRkzXOmPWLWVbcidsP7NyZ38AZyuTULfD9e5UkN/WFW57t69Vxb4Tv1fJQr8dshv5xtvJ1FGBtnZmIXCgCsiev3AJjbRFtt7nL4YAMdQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sqGGX-0007of-L9 for bug-gnu-emacs@gnu.org; Mon, 16 Sep 2024 14:16:01 -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 18:16:01 +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.172651053930003 (code B ref 73280); Mon, 16 Sep 2024 18:16:01 +0000 Original-Received: (at 73280) by debbugs.gnu.org; 16 Sep 2024 18:15:39 +0000 Original-Received: from localhost ([127.0.0.1]:53230 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sqGGB-0007nr-BD for submit@debbugs.gnu.org; Mon, 16 Sep 2024 14:15:39 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:37954) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sqGG9-0007nc-Bp for 73280@debbugs.gnu.org; Mon, 16 Sep 2024 14:15:38 -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 1sqGFp-0007dp-DM; Mon, 16 Sep 2024 14:15:17 -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=YFSVj6C3wrVno7WFkWK89dDiBWcA705XGEpemwIr1Xo=; b=EthD5MYtcppx OckQ4cF+wXQK8J0keaxFHmVXz8C3laxodVrSY9vA1d+JhqjIM9OxtsVko+2m5CmZB3GQ6Hrb6AqAK VWnok+HhNujA1Z/UKUNNRN6P46AgnWoAHAahJ+aciaXX+FqyiZ4mbu6DH1ZASxyUp2Wll4dTMf6p3 hDaUtRWSpwUDIOwbIDfId507N4fQF28G+MsITtLxGkEa6cpCKnrSIhcmGIadTFXMqT70LlwlZoNGm UE8PZUvk3zaCWZybGlhuiCxbT6nGWaXcnsB9vVZIEC6JwG4XuQIgV76ymJPSAgccakW61CtqgjNH/ q1a62QLzBWWs84FFTu8w/w==; In-Reply-To: (message from Troy Brown on Mon, 16 Sep 2024 13:07:15 -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:291903 Archived-At: > From: Troy Brown > Date: Mon, 16 Sep 2024 13:07:15 -0400 > Cc: Eli Zaretskii , Stefan Monnier , 73280@debbugs.gnu.org > > > Is there a downside to mentioning a major mode you don't > > actually use in your .dir-locals.el, Troy? > > > > I would say the major downside is that it is not intuitive at all. 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. > It's not consistent with how directory-local variables behave. I disagree. Certain settings in .dir-locals are completely global, which is even more radical than this case. Having to specify a setting once for several related modes is a Good Thing, IMO. > 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.