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 19:18:52 +0100 Message-ID: <87mt4ppwtv.fsf@gmail.com> References: <87cz5mqicb.fsf@gmail.com> <874jqyqh51.fsf@gmail.com> <87v8jeowmc.fsf@gmail.com> <87r0u1q2sn.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="18407"; 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 19:19:36 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 1pZFQs-0004bK-Rk for ged-emacs-devel@m.gmane-mx.org; Mon, 06 Mar 2023 19:19:34 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pZFQJ-00085W-AJ; Mon, 06 Mar 2023 13:18: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 1pZFQH-00084x-Va for emacs-devel@gnu.org; Mon, 06 Mar 2023 13:18:58 -0500 Original-Received: from mail-ed1-x52e.google.com ([2a00:1450:4864:20::52e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pZFQG-0005Wx-9U for emacs-devel@gnu.org; Mon, 06 Mar 2023 13:18:57 -0500 Original-Received: by mail-ed1-x52e.google.com with SMTP id a25so42688741edb.0 for ; Mon, 06 Mar 2023 10:18:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678126734; 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=/U9SU8NcZ2sNDMQp/Fzzdx/soRUGOJfaM27MB1BdtpM=; b=f6D8cWrQzlkpTr5il9Rpn9d5dm9DpCfR+ZX88Vhc3moZHVO7JQEZR7MSsstqvmiypm pIxn/Cx2BMnZj2Int/vxmWF7fKC4Y0f2/jSNGo6kt6a4N4V4/oUgxVTx2kzS+C/sL+jR BTN7usD3dbV2+Tht/0eiqVydDxik+h4JqLgvPLdqHdXgm6zJq71nVydUw3rTHd58KTJp m/aysjiLRAjpWOr5dS5gzpWsRnYfiVIY2o7pfQwYh3BpkgoWMApa5CS4wVyiwITx+jZb ILw8/ycooKDv9v4Noy/pWOnpTFbYN1FUrX1tofPaQtRV5ZxR/0AM7jKqFjHqyc7SsQJU d3Mg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678126734; 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=/U9SU8NcZ2sNDMQp/Fzzdx/soRUGOJfaM27MB1BdtpM=; b=CdEGZjXGCRNByLcuER97Ifu3Fu7l8lTTAqdSy4+7OnTSkQxmKN0hvnNl0nihiBTNzm onT7o4O/6zLXSRZccKkQ7eBLqhYzHXrtzMjKe7RIkSaJEkVw3U93wnH7LRTunObHMcJb sOkOnuWgpxeuFAlvorlm1sLwfw7GRFkh30goGajeiQSkYnnMG9BqqWbWjc72fOUXRQRD wn+SyRFVSh7XUuFVF62ZCv5LdQ2LiBNN7ubymUgGocfIp+EjkLfxuFw+US4maxAuGaC0 EhVmuQLEKvrGmpaahV/SVJfuaHlMaVLhzRwmtIERGJ+02snSjR7w0uX4GgArqq2meGnu 644g== X-Gm-Message-State: AO0yUKVDckl06s+GSKqlOs+QRzF5SXs9wgk+6yfpSmhKqxQflbTFCY2m auCHJBQMYQnpf8c9DAloZgE= X-Google-Smtp-Source: AK7set8FW9rG6IhBRwIOI7o3BVM3p11MImONXF80zWdDRVqteURZnjbUJYQgHGmoBfWQULTpARPuFw== X-Received: by 2002:a17:906:12cc:b0:8f4:ec13:d599 with SMTP id l12-20020a17090612cc00b008f4ec13d599mr13139453ejb.27.1678126734329; Mon, 06 Mar 2023 10:18:54 -0800 (PST) Original-Received: from ars3 ([2a02:8109:8ac0:56d0::8b3a]) by smtp.gmail.com with ESMTPSA id e5-20020a17090681c500b008d269233bd4sm4859314ejx.204.2023.03.06.10.18.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Mar 2023 10:18:53 -0800 (PST) In-Reply-To: (=?utf-8?Q?=22Jo=C3=A3o_T=C3=A1vora=22's?= message of "Mon, 6 Mar 2023 16:25:14 +0000") Received-SPF: pass client-ip=2a00:1450:4864:20::52e; envelope-from=arstoffel@gmail.com; helo=mail-ed1-x52e.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:304058 Archived-At: On Mon, 6 Mar 2023 at 16:25, Jo=C3=A3o T=C3=A1vora wrote: >> We wouldn't be discussing any of this is LSP servers had configuration >> files like any other normal program, but, given the state of affairs, we >> should just decide on an "actually good" solution and spend the 300 LOC >> it takes to implement that. > > I gave my take on where those 300 LOC should be spent: > > 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. 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.)