From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Troy Brown 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 17:34:02 -0400 Message-ID: References: <86ttefde1d.fsf@gnu.org> <86a5g7cvnx.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="13931"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , monnier@iro.umontreal.ca, 73280@debbugs.gnu.org To: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Sep 16 23:35:17 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 1sqJNN-0003Wa-62 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 16 Sep 2024 23:35:17 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sqJMy-0004sO-P3; Mon, 16 Sep 2024 17:34:53 -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 1sqJMx-0004sE-1T for bug-gnu-emacs@gnu.org; Mon, 16 Sep 2024 17:34:51 -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 1sqJMu-00063x-1O for bug-gnu-emacs@gnu.org; Mon, 16 Sep 2024 17:34:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=Date:From:In-Reply-To:References:MIME-Version:To:Subject; bh=HgRzOnFdz/XzplpAmPy6XZaPVLwoSmauZKj1+Yd5BNs=; b=qKauZOYMUTG2/wsVH9XmpBWmsB5oaBEm6sSIfjlRyHlMlCv/NFMjIh6yeMKW9nJbchoWlvo4lbaRjvrWuWfVYDik+YN4XaDzPeZiSR5ATVj2mgRac2Mw62PVDCt+bobwT/zZHfaEjkQzL/HZkiGL2LrfDcqE9/TY9i60/fPCgCfXfBigOsX0rq2hTiMU1RnnP5Z81+E/lnFGqGh+Z3eml9oLZtJQopse/Tytd4K1f9zDe0qiyTyQ5JBmwIpU0+KEhIbNaGJafb9CiE1DxZ96k27yn48e/6kxHtZ9KWAR6OE/YIVN+OCulimA7YsHvlkUrxHhcORJU6cKasYFrY7kig==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sqJN7-0001op-LM for bug-gnu-emacs@gnu.org; Mon, 16 Sep 2024 17:35:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Troy Brown Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 16 Sep 2024 21:35: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.17265224776948 (code B ref 73280); Mon, 16 Sep 2024 21:35:01 +0000 Original-Received: (at 73280) by debbugs.gnu.org; 16 Sep 2024 21:34:37 +0000 Original-Received: from localhost ([127.0.0.1]:53503 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sqJMi-0001ny-JJ for submit@debbugs.gnu.org; Mon, 16 Sep 2024 17:34:36 -0400 Original-Received: from mail-ej1-f52.google.com ([209.85.218.52]:44270) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sqJMg-0001nm-Oc for 73280@debbugs.gnu.org; Mon, 16 Sep 2024 17:34:35 -0400 Original-Received: by mail-ej1-f52.google.com with SMTP id a640c23a62f3a-a7aa086b077so612993566b.0 for <73280@debbugs.gnu.org>; Mon, 16 Sep 2024 14:34:20 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726522455; x=1727127255; 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=HgRzOnFdz/XzplpAmPy6XZaPVLwoSmauZKj1+Yd5BNs=; b=CRTo87XMlPgg1c272kJOB0M0xdavKIaf89qsGwUC1fk6O5jQ4alac95dkS0tpVEwZ1 nHYtgQbjwe/xrE0LXH83i5VLSS/mQhJ2jb9hStfpbuwRj6uGtcDSUHrqwiac//q0TmJx SNUB6CRkggi5dvPlKWIoTKs2dcqUOr4wuoZHsWuuYvnoSoHvh9VcF028nunhpm4nt5Mu VhHINREEx/lkjYxOtGECaalCWtGUd/7IRDCT4lHpUX9K8RseTCpYZC1sn1V6aeFMQxDU sLlhm37q/Al6lLR6glZqK15n9jy7SVU2UlFtIFROfqTZouDkwTmCoxIAHJ2YdjGNO4jo d2YQ== X-Forwarded-Encrypted: i=1; AJvYcCXmc+1Iy9os3aMeD1HaBJKtfmih8BBq+Cyghu+eEMMmChYd35VKj1/iDvqzmwv2pILw+zt9UA==@debbugs.gnu.org X-Gm-Message-State: AOJu0YzkRaXexMHCHLMiJery4vqpxQlWyvCCx2BCPinfqrquicMJ8qVi CzLWfFyiKHC8AcIj3rnzItF8j5GKO/Q3lRg4e5FoyHYJVsU1i6xJw1xPwlYnrVs= X-Google-Smtp-Source: AGHT+IEFydWbAawbLFgZhJQDWZIopGmgJDlrvOd3HuP0G6uWOgxTQwrSn/60DGtsbfd/j7RlmL+FHA== X-Received: by 2002:a17:907:f153:b0:a7d:e956:ad51 with SMTP id a640c23a62f3a-a9029438ed1mr1558188366b.21.1726522454237; Mon, 16 Sep 2024 14:34:14 -0700 (PDT) Original-Received: from mail-ed1-f41.google.com (mail-ed1-f41.google.com. [209.85.208.41]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a90610f3878sm364833266b.47.2024.09.16.14.34.13 for <73280@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 16 Sep 2024 14:34:13 -0700 (PDT) Original-Received: by mail-ed1-f41.google.com with SMTP id 4fb4d7f45d1cf-5c413cf5de5so6897475a12.0 for <73280@debbugs.gnu.org>; Mon, 16 Sep 2024 14:34:13 -0700 (PDT) X-Forwarded-Encrypted: i=1; AJvYcCWplKiA7EvmUsyFTuM3tVR2YMBIiC325PpUiA0hMxHBroKUHMWBVVHU5WEWzPXZ0GUkhUuwvA==@debbugs.gnu.org X-Received: by 2002:a05:6402:5290:b0:5af:30d9:e2b6 with SMTP id 4fb4d7f45d1cf-5c413e4a402mr16388423a12.23.1726522453724; Mon, 16 Sep 2024 14:34:13 -0700 (PDT) In-Reply-To: X-Gmail-Original-Message-ID: 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:291917 Archived-At: On Mon, Sep 16, 2024 at 3:06=E2=80=AFPM Jo=C3=A3o T=C3=A1vora wrote: > > On Mon, Sep 16, 2024 at 7:54=E2=80=AFPM Troy Brown wrote: > > > 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. > > Well, typescript is a transpile-to-js language, doesn't strike me as > that odd. > > Also have you read section 5.1.1 of the Eglot's user manual? You > can just use `nil` as the mode and `w-s-configuration` will > be set buffer-locally in all modes for buffers within that dir. > This is probably easier. Check it out. Thanks for the pointer on using "nil", I had forgotten about that. Since it appears I'm failing to make a convincing argument, I think that using "nil" will be my approach going forward. I'll avoid using mode-based configuration in Eglot, as I find it deceptive and prone to future breakage. In its current state, I think it would be wise to discourage its use in the user manual, to avoid misunderstanding and potential future problems. I'm surprised nobody has raised this issue in the past, but don't be surprised if you receive additional bug reports in the future.