From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Augusto Stoffel Newsgroups: gmane.emacs.devel Subject: Re: Explain a bit more on how to configure language server in Eglot's manual Date: Mon, 06 Mar 2023 22:13:51 +0100 Message-ID: <87356hshv4.fsf@gmail.com> 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="28409"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Pedro Andres Aranda Gutierrez , Yuan Fu , Emacs developers , Stephen Leake To: =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Mar 06 22:14:53 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 1pZIAX-0007DD-7b for ged-emacs-devel@m.gmane-mx.org; Mon, 06 Mar 2023 22:14:53 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pZI9d-0007I2-MC; Mon, 06 Mar 2023 16:13:57 -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 1pZI9d-0007Ht-0B for emacs-devel@gnu.org; Mon, 06 Mar 2023 16:13:57 -0500 Original-Received: from mail-ed1-x533.google.com ([2a00:1450:4864:20::533]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pZI9b-0005DY-58 for emacs-devel@gnu.org; Mon, 06 Mar 2023 16:13:56 -0500 Original-Received: by mail-ed1-x533.google.com with SMTP id da10so44440051edb.3 for ; Mon, 06 Mar 2023 13:13:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678137233; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=TSiq7cUEPcL8DpcPuTo3fFh3sD2j2/aokyYxxfvbx8M=; b=mPDiffw/tnwsieT6F+YTQvK338nDZ3hfiH3cjE/IXDTcbAjhDnsjPK8EsMNap+W2PC wBVPX11BPliSBekzvb9Lh1dZTxR4evGTNUOD+eNAxqf4+Zbit0zggkU0fjvaRdNT+eEZ JduiAUdiB18y6FFRXfO2+p1qCrpIs5TEBDF5amxeeJ3DwMu+uMNwiTBynEt6u04MS/TQ ttw3BlPsTc4h6Hsww5nwu8vU79PDU8jjNh6roTiFvu8LHUEmlOWz3mzrMq27zfb5a27U uV11EAV8zL2evQZYlkJt8BT9ctEbeg8xfJ2LxALCt1Q0itgSAX35mEiwJjqr9Zd+eS5F fSfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678137233; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=TSiq7cUEPcL8DpcPuTo3fFh3sD2j2/aokyYxxfvbx8M=; b=ln+S6Dn4SVpPyCAU6f3bOj/klXUbt+GuSevv1MrLcRVM3mWLUpNTjG29xf3oywbkeM LI7yP39tTKUgZxiEXO6vGQxKiaKn+gfsG4OmrOHYEXRZiJhrjcVYEPRyCPa/UqWlf6k0 AJVz36G8ecQ6P8oozTThzyz4IGKgT4tmCyxK6FDN+mDBi5RoOtCTfXxh9lfiCQjOHo/T w7E24Ht/w6rHmW7Y3UWvuqtlVn+uNvsgj7s+pv8MmCIyl3w5aUV77wGMfDUoLLjSqzrD ryrJ4HN2O0rFodeYwLt1iAOGZ4sWJGAzAawv/Zrv22HSOJGnYrwDzKLcBJyAgxMBD1ha CMlQ== X-Gm-Message-State: AO0yUKVegGxlHZh9gFR3E2FY9HaCdutMAAWeSzmClW875fHabhxrsW4v GiE2hP4P+/KiKrwFuJ9qz78= X-Google-Smtp-Source: AK7set9bU4OaE/wqn7Ppa3Pj7+qQEVhTkUbMEJDqafI4uUb2O3VQXgxjaucLC6Yy1stLhk9L7iQE/g== X-Received: by 2002:a17:906:bc57:b0:874:e17e:2526 with SMTP id s23-20020a170906bc5700b00874e17e2526mr11338858ejv.72.1678137233343; Mon, 06 Mar 2023 13:13:53 -0800 (PST) Original-Received: from ars3 ([2a02:8109:8ac0:56d0::8b3a]) by smtp.gmail.com with ESMTPSA id 24-20020a170906301800b008f883765c9asm5039749ejz.136.2023.03.06.13.13.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Mar 2023 13:13:52 -0800 (PST) In-Reply-To: (=?utf-8?Q?=22Jo=C3=A3o_T=C3=A1vora=22's?= message of "Mon, 6 Mar 2023 18:32:43 +0000") Received-SPF: pass client-ip=2a00:1450:4864:20::533; envelope-from=arstoffel@gmail.com; helo=mail-ed1-x533.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:304063 Archived-At: On Mon, 6 Mar 2023 at 18:32, Jo=C3=A3o T=C3=A1vora wrote: > 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-var= iable > 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. You're done and scratching your head, wondering why your server didn't pick up the settings yet. > 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. By that reasoning one would want the entire events buffer in JSON format. In my recollection that command was really intended to debug user configurations.