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 11:13:40 +0000 Message-ID: References: <87cz5mqicb.fsf@gmail.com> <874jqyqh51.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="12720"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Yuan Fu , Emacs developers , Pedro Andres Aranda Gutierrez , Stephen Leake To: Augusto Stoffel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Mar 06 12:14:19 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 1pZ8nL-00037Q-Kx for ged-emacs-devel@m.gmane-mx.org; Mon, 06 Mar 2023 12:14:19 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pZ8n4-0004tQ-T6; Mon, 06 Mar 2023 06:14:02 -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 1pZ8mw-0004q1-ON for emacs-devel@gnu.org; Mon, 06 Mar 2023 06:13:55 -0500 Original-Received: from mail-oa1-x2e.google.com ([2001:4860:4864:20::2e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pZ8mv-0004x1-7z for emacs-devel@gnu.org; Mon, 06 Mar 2023 06:13:54 -0500 Original-Received: by mail-oa1-x2e.google.com with SMTP id 586e51a60fabf-1767a208b30so8997427fac.2 for ; Mon, 06 Mar 2023 03:13:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678101231; 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=LsqQGpJkJZhk2G+FpSGnFJvtlGmy/5P2JLn5FgurvKI=; b=GjIVKtFIdFs1lRSJmUHls/UMHvB1tujxZ5v4NyAvws57i1susisN6Urt7RAajGXqZo eUGUbgBpO+xJHzLPgEmqHvaOFsQpYgQvqZDYPUPek5ZSmZeWUX9p7uLm1nFxphV4yIu1 CxDYsCbYXuHXCNUNw9XTJRjqu/4zxrRLuNNoWiMTrKk/KYt5D0ZzLiKFXJs0/6n7D5cJ /aNLfxVaDoQPrcbNrCArYKACUlWejGo1Eotk3G0lvgdWUTdv3K4KBEuOPapC9M/AlktK iGjc10MjDcyQk9b4W40fvzPdgFb07d1I8LZo/0iiVWlyx4+mXCYv1/aqu7LUXGkDr7ic J4Tw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678101231; 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=LsqQGpJkJZhk2G+FpSGnFJvtlGmy/5P2JLn5FgurvKI=; b=hp/tbjXIKZEuBF916KsKNhazNGGOiPOhBXbhqFYBnvZFBXlxWHGRSLbYaU4EbRtBb5 b72rXEep2zc8lgg4oN3YaDFnd/4rOTARBbfNq/GaG/nZJ487irwnrbs+qJhWYyiHlxRK HLgrJ/gzk+e54+B8+0Bu+nCRCgdpri55m0nrlh3Q5OQkar70+hXv9XLJJ7f4IyZU8+2a MR9g9zPmuQWReZknmFU8/4WkKF+nBE4e57I2O4gn+yWRJWicx2Incn/PDL0Yq3I9Ytr8 Ku1rl7CN1P4oUbmclrR5/Dhlv2aTNfG7f/rzwMmQBaBH9qdMKE8eYHU67qCZwe5rHTDk nihg== X-Gm-Message-State: AO0yUKVZ9aBR1A2TkqF1CrxbnOPoLDzTb6JREoc3BPGh8zLKN7gHgCAW 6MiiTOmeilDo4gxbVY2Jg8BPXNwwKvPnv8jLTMc5o85K X-Google-Smtp-Source: AK7set+0KPAeDH7m5OS2dMXBc4+pz9vgFl2BP2x/OOZ2ChihZSKtWFF4hKa2jPpupvPvqtFm8hKS6nQwVkrvD6lSOtc= X-Received: by 2002:a05:6871:6a81:b0:176:3e60:3269 with SMTP id zf1-20020a0568716a8100b001763e603269mr3499133oab.8.1678101231043; Mon, 06 Mar 2023 03:13:51 -0800 (PST) In-Reply-To: <874jqyqh51.fsf@gmail.com> Received-SPF: pass client-ip=2001:4860:4864:20::2e; envelope-from=joaotavora@gmail.com; helo=mail-oa1-x2e.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:304028 Archived-At: On Mon, Mar 6, 2023 at 11:00=E2=80=AFAM Augusto Stoffel wrote: > > On Mon, 6 Mar 2023 at 10:51, Jo=C3=A3o T=C3=A1vora wrote: > > > Conveniently editing Emacs variables (file-local, dir-local, buffer > > -local, global) interactively from the minibuffer (or some other simila= r > > place) is an idea that has been discussed before here. We could > > restart that discussion. > > But this exists: add-local add-dir-local-variable, > add-file-local-variable, customize-set-variable, set-variable are all > interactive functions that use the minibuffer. But I don't think this > UI is the most suitable for this purpose. Then they should be upgraded so that they do become suitable, because this is first and foremost about editing variables. For example, there could be: * a way to ask to do do the editing in a separate buffer * a way to insert the current value of the variable to be added as the initial value of the thing to be read * a way to ask to use 'eval' of the user's input rather then just 'read' (here, an Eglot function could be used to spit out a plist from a bunch of dotted strings in VSCode style). * maybe more? Also, the LSP use case you're asking for here is for add-dir-local-variable where the directory is the current project's project-root. So maybe a add-project-local-variable or somesuch would be a good first step. > > If such a mechanism is eventually agreed on for Emacs in general, Eglo= t > > could very well take advantage, but don't think eglot.el should just ma= ke > > its own idiosyncratic take on that. > > AFAICT this mechanism has been agreed upon. VC log, Magit commit, Org > capture, to name a few, all use the kind of UI I described. These are not for editing values of Emacs Lisp variables. Jo=C3=A3o