From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= 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 18:32:43 +0000 Message-ID: References: <87cz5mqicb.fsf@gmail.com> <874jqyqh51.fsf@gmail.com> <87v8jeowmc.fsf@gmail.com> <87r0u1q2sn.fsf@gmail.com> <87mt4ppwtv.fsf@gmail.com> 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="11997"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Pedro Andres Aranda Gutierrez , Yuan Fu , Emacs developers , Stephen Leake To: Augusto Stoffel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Mar 06 19:33:30 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 1pZFeM-0002zd-NU for ged-emacs-devel@m.gmane-mx.org; Mon, 06 Mar 2023 19:33:30 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pZFdr-0007rH-Qk; Mon, 06 Mar 2023 13:32:59 -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 1pZFdq-0007qk-Ae for emacs-devel@gnu.org; Mon, 06 Mar 2023 13:32:58 -0500 Original-Received: from mail-oi1-x233.google.com ([2607:f8b0:4864:20::233]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pZFdo-0002Ec-NW for emacs-devel@gnu.org; Mon, 06 Mar 2023 13:32:58 -0500 Original-Received: by mail-oi1-x233.google.com with SMTP id bm20so7784257oib.7 for ; Mon, 06 Mar 2023 10:32:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678127575; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=gQv5KOBkCYenLlZ/bBWFq22MlIPbxP6ScZaluUloLFk=; b=RSwM2qeNOZ63uScBpeNWEVLVK5ez/y0351Ewzkdi+A3g4mkCR+rZZzqPJe7GICQB7F ilCDzPdjuhIb6m30icNXDCHun6nSY2CT1bshOUewDWtHTNj+OH5uQc7qQL5Yk5TP5FqY tAjIo6J1geeUEM4FoIjad7vRjLH83mYCnfW98UZQBNcOEj18e0sHpAet3vAyrWgB5tv8 pE7HfDSXlRFMNV2DrRWEat5wJm3+4o27CP+soBfsMTyygG3B8jEGaHW7fhDV2Ived415 Afm4Ux1/qh5XQj+y0U945jGu+rXCXYwQPRfJloTT5kJvK6JDQuM4ulhSrFx0X9DB4g9J FhGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678127575; 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=gQv5KOBkCYenLlZ/bBWFq22MlIPbxP6ScZaluUloLFk=; b=iPDqSlB7pwYwDEBkki2c1zTQKbO901VhcU7hvDrWKKz/1JAcmi953s9wOysIYI6KBI CY8XB6CODzYcAxDVePKRsru4eIlh56sdhTj5P+vqREjxCiKq1xcamf1Yh12a0vrzhMa+ n5+PwTh39Fti6/Upswae/ImK4dDc5xhesvvQBNthvp9Ru3QBqGAvxnpKzOwn+rOhCp/T lQwZNhEbi4oZlSlzbnvFBl7yyag5d0HXh88Y6SEYXTRpwU7JdR09HNd8ShcRL5BpN8rV 4i4dQ5SzycyOyvyvXrtF2FuHHYA1YlEf0EjKQVK4YYLz7BM4bi1cuPHM+x6nLwphRhSv t9LQ== X-Gm-Message-State: AO0yUKWBhZZq/IPmQM4b5/HyrRDSgAPuKtRNh+w981QspKtj0RZqUxyL O13J/1tdfQouLuY2EgH/tzGT6HfgljmgziqHxYk= X-Google-Smtp-Source: AK7set+sSCY4xYjhfeoCqzwSegqy6ozXCuBaj1g6vOgQdj5FVI5exlxW9gIX6VRovghdRFPtxK0sEmaYFWo9v+Wx9bk= X-Received: by 2002:aca:1a0d:0:b0:36e:f6f5:66a2 with SMTP id a13-20020aca1a0d000000b0036ef6f566a2mr3820084oia.8.1678127575110; Mon, 06 Mar 2023 10:32:55 -0800 (PST) In-Reply-To: <87mt4ppwtv.fsf@gmail.com> Received-SPF: pass client-ip=2607:f8b0:4864:20::233; envelope-from=joaotavora@gmail.com; helo=mail-oi1-x233.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:304059 Archived-At: On Mon, Mar 6, 2023 at 6:18=E2=80=AFPM Augusto Stoffel wrote: > > 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. > > 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. What glue code? M-x add-dir-local-variable (or M-x add-project-local-varia= ble 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. > 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.) 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. Jo=C3=A3o