From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Pedro Andres Aranda Gutierrez Newsgroups: gmane.emacs.devel Subject: Re: Explain a bit more on how to configure language server in Eglot's manual Date: Mon, 6 Mar 2023 21:16:32 +0100 Message-ID: <05970B89-7245-403E-86AA-817A16F53A8D@gmail.com> References: Mime-Version: 1.0 (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="21628"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Augusto Stoffel , Yuan Fu , Emacs developers , Stephen Leake To: =?utf-8?Q?Jo=C3=A3o_T=C3=A1vora?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Mar 06 21:17:28 2023 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 1pZHGy-0005Sr-5O for ged-emacs-devel@m.gmane-mx.org; Mon, 06 Mar 2023 21:17:28 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pZHGK-00035U-IP; Mon, 06 Mar 2023 15:16:48 -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 1pZHGI-00034F-Uw for emacs-devel@gnu.org; Mon, 06 Mar 2023 15:16:47 -0500 Original-Received: from mail-wm1-x32f.google.com ([2a00:1450:4864:20::32f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pZHGH-0001kk-FH for emacs-devel@gnu.org; Mon, 06 Mar 2023 15:16:46 -0500 Original-Received: by mail-wm1-x32f.google.com with SMTP id o11-20020a05600c4fcb00b003eb33ea29a8so5926354wmq.1 for ; Mon, 06 Mar 2023 12:16:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678133804; h=to:in-reply-to:cc:references:message-id:date:subject:mime-version :from:content-transfer-encoding:from:to:cc:subject:date:message-id :reply-to; bh=0T4jfClUDguYlezXnIAzrq9QhQ8/XKa3J99Wn+suEXE=; b=QBWmUcsF3njUllXveDTNvHYF+gftdMrO6aOabsNEXz5FEWlA8iYtdXKZNJ4KWeCukQ QAlBeabK8ImFUsy2AcrtauhQbfQPDM6OilW7x3sZUzYTlHU9cn7/OOIsn++ux2sVtRUK s7uf9lHt1pe74iLHdLKvK29wFByBAztxOAit+hcW/eD38JR48E8wEqbK4mf9u6/BYbLw zDkSxOc8pmxEDv5aQDrTYjk1p2N0gy23QCYJGRl8D0p7M/mZ3+QkJQ9w1QTJl9znpG/g aBcWxja8gB+/W5I0P1TL/srqcQ8KJJLgdVVH8rKAugorN56YLifV6XzGTr3K3jN6JMVH PDXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678133804; h=to:in-reply-to:cc:references:message-id:date:subject:mime-version :from:content-transfer-encoding:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=0T4jfClUDguYlezXnIAzrq9QhQ8/XKa3J99Wn+suEXE=; b=EsH5eMtU6fdblj2+E27mH2qyRO7uvLyz8AL4sZmXaNXOLjLRBdkZYP6FDHB465ERdN i4AFFtFg4WUkpC9aHzLLIkReScABMMUTnUf5/YpVEnMyFl5TFd7nCNSDBUph6/gI7GA4 +YYIPxUhcP3Kt/2CMSbbmh/wto3qMXS8XTV3IM6kQxY0EiWJCbVC7rdIFlmPZlS3ybiE vy+7D8mbhhOUKZMJHWPjmxGtqyE9iIbgVS7ledvBrOJmfbDhirv7ziSlLPWWTme1ERw2 TfcBd0SYIvKnxcHP59q6cZ3hKDhQmy8s4lz4fgO+afGvMH7y/cY2JQrlBnLIxA2sWIoi 7dEg== X-Gm-Message-State: AO0yUKV7OfxkE0vkLkztCVakBstIjt5/di8CvtJdrZoe/yVx+Z9qxIXs 4DwIyKwJ/gvPqJjYAk8f6sHPu6u2SBjH7g== X-Google-Smtp-Source: AK7set8xQdyOKT245+qjKMuWZUH/hA87M8KxtQnKspFjZfFRm89KJOD/Y7nFbEJb/dy58AzfvsU3SA== X-Received: by 2002:a05:600c:1d01:b0:3eb:38e6:f65d with SMTP id l1-20020a05600c1d0100b003eb38e6f65dmr10121370wms.11.1678133803645; Mon, 06 Mar 2023 12:16:43 -0800 (PST) Original-Received: from smtpclient.apple (89.red-80-29-232.dynamicip.rima-tde.net. [80.29.232.89]) by smtp.gmail.com with ESMTPSA id i47-20020a05600c4b2f00b003eb5a531232sm11107168wmp.38.2023.03.06.12.16.43 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 06 Mar 2023 12:16:43 -0800 (PST) In-Reply-To: X-Mailer: iPhone Mail (20C65) Received-SPF: pass client-ip=2a00:1450:4864:20::32f; envelope-from=paaguti@gmail.com; helo=mail-wm1-x32f.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:304062 Archived-At: If we have the plist-> json part, how difficult would it be to do the revers= e and allow the config to be stored as a JSON string? Just an innocent =F0=9F=98=87 question=E2=80=A6 PA Enviado desde mi iPhone > El 6 mar 2023, a las 19:32, Jo=C3=A3o T=C3=A1vora e= scribi=C3=B3: >=20 > =EF=BB=BFOn Mon, Mar 6, 2023 at 6:18=E2=80=AFPM Augusto Stoffel wrote: >=20 >>> add-dir-local-variable with new edit-in-buffer option, an eval option, >>> and a fill-in-existing-value option. As a bonus, all those are >>> orthogonal, so you can do 100 + 100 + 100. >>=20 >> Fair enough. I think you might be overestimating the general interest >> in those things and underestimating the amount of glue code Eglot would >> still need, but it's just a hunch. >=20 > What glue code? M-x add-dir-local-variable (or M-x add-project-local-vari= able > which is a just a very thing shim on top of the other), then select > eglot-workspace-configuration, then edit the value and you're done. >=20 >> Anyway, my offer to make the >> eglot-show-workspace-configuration buffer editable remains open. (If >> you find a better solution you should probably remove e-s-w-c because it >> feels like a hack in the current state.) >=20 > Not a hack, really. eglot-show-workspace-configuration shows the actual > configuration in JSON format. That's useful and LSP specific, so it > belongs in Eglot. Fredrik Bergroth added it because that is what is > sent to the server and is really good for debug purposes and > communicating with server devs, for example. So it's not subsumed > by C-h v, for example. >=20 > Jo=C3=A3o