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#58894: Comments on Eglot manual Date: Thu, 03 Nov 2022 15:51:51 +0200 Message-ID: <83sfj06t8o.fsf@gnu.org> References: <87a65dtvuw.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="37919"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 58894@debbugs.gnu.org To: Augusto Stoffel , =?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 Thu Nov 03 14:53:16 2022 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 1oqaei-0009jd-QW for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 03 Nov 2022 14:53:16 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oqaeV-0006Vh-Mx; Thu, 03 Nov 2022 09:53:03 -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 1oqaeU-0006VG-MX for bug-gnu-emacs@gnu.org; Thu, 03 Nov 2022 09:53:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oqaeU-0003oS-EJ for bug-gnu-emacs@gnu.org; Thu, 03 Nov 2022 09:53:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oqaeU-0006cO-8w for bug-gnu-emacs@gnu.org; Thu, 03 Nov 2022 09:53: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: Thu, 03 Nov 2022 13:53:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58894 X-GNU-PR-Package: emacs Original-Received: via spool by 58894-submit@debbugs.gnu.org id=B58894.166748352725369 (code B ref 58894); Thu, 03 Nov 2022 13:53:02 +0000 Original-Received: (at 58894) by debbugs.gnu.org; 3 Nov 2022 13:52:07 +0000 Original-Received: from localhost ([127.0.0.1]:48403 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oqadb-0006b7-Eh for submit@debbugs.gnu.org; Thu, 03 Nov 2022 09:52:07 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:33288) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oqadY-0006aE-PT for 58894@debbugs.gnu.org; Thu, 03 Nov 2022 09:52:05 -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 1oqadT-0003dw-D3; Thu, 03 Nov 2022 09:51:59 -0400 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=Aiusy0zylnRWvmZ2cJkYzwVj20BRN/4lmFQZwKEQYAs=; b=hWDSPZzLxgaJ0t0x7wBi NQ9UYgLnSNfFQ43pzlCDxjpVMRGJeKtn7W6pGFbK/gNtHDxefjjN/7IaG5AezkU0R+NezbrWdp+hu rBEEfPC7HOuAQcsEpZJkYZRgGRR4JICgpMWs/Xar54SIuult721TqCtozeyckLJcwFvL59NY0sFN4 Hw5zZnwUqcqJeH5HjRJ6byANQujUXTBk8FuQchQQDN+flBtw9hOIsviPUIaLIvopCFTYYEWDKhGHG 0caaWT6IMUrS6fg/dvSoTLnrpfdwjWbFW/oirgPzAINe6Ks+R0OH53JJ3pUg04wse1W3Ws17nWZUX RTLGtBrYNiKgUQ==; 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 1oqadS-0004DG-S1; Thu, 03 Nov 2022 09:51:59 -0400 In-Reply-To: <87a65dtvuw.fsf@gmail.com> (message from Augusto Stoffel on Sun, 30 Oct 2022 12:05:27 +0100) 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: , Original-Sender: "bug-gnu-emacs" Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:246962 Archived-At: > From: Augusto Stoffel > Date: Sun, 30 Oct 2022 12:05:27 +0100 > > Find below some comments on the "Customizing Eglot" section of the manual: > > > [...] via the variable ‘eglot-workspace-configuration’. Eglot sends the > > portion of the settings contained in this variable to each server for > > which such settings were defined in the variable. > > This is not true. The entire `eglot-workspace-configuration' is sent to > the server; presumably, severs ignore everything which is not under its > own prefix, but that's just a convention. > > > JSON values ‘true’, ‘false’, ‘null’ and ‘{}’ are represented by the > > Lisp values ‘t’, ‘:json-false’, ‘nil’, and ‘eglot-{}’, respectively. > > Unless something has been renamed recently, it's `eglot--{}', not > `eglot-{}'. > > > Alternatively, the same configuration could be defined as follows: > > > > ((nil > > . ((eglot-workspace-configuration > > . (:pylsp (:plugins (:jedi_completion (:include_params t > > :fuzzy t) > > :pylint (:enabled :json-false))) > > :gopls (:usePlaceholders t)))))) > > This is more or less obvious, if you know how dir-local variables work. > So I would suggest mentioning a different configuration method: > > Alternatively, you can set a default workspace configuration globally by > adding the following to your init file: > > (setq-default > eglot-workspace-configuration > '(:pylsp (:plugins (:jedi_completion (:include_params t > :fuzzy t) > :pylint (:enabled :json-false))) > :gopls (:usePlaceholders t)) > > > > > This is an equivalent setup which sets the value for all the > > major-modes inside the project; Eglot will use for each server only the > > section of the parameters intended for that server. > > Again, this is not true. Rather, each sever will presumably ignore any > settings not under its own "namespace". João, any comments?