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:46:29 +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="22185"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Augusto Stoffel , Yuan Fu , Emacs developers , Stephen Leake To: Pedro Andres Aranda Gutierrez Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Mar 06 12:47:25 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 1pZ9JL-0005cB-SN for ged-emacs-devel@m.gmane-mx.org; Mon, 06 Mar 2023 12:47:23 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pZ9Ii-0000Pn-3P; Mon, 06 Mar 2023 06:46:44 -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 1pZ9Ih-0000PZ-Bk for emacs-devel@gnu.org; Mon, 06 Mar 2023 06:46:43 -0500 Original-Received: from mail-oi1-x231.google.com ([2607:f8b0:4864:20::231]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pZ9If-0002BN-MP for emacs-devel@gnu.org; Mon, 06 Mar 2023 06:46:42 -0500 Original-Received: by mail-oi1-x231.google.com with SMTP id bj30so6763199oib.6 for ; Mon, 06 Mar 2023 03:46:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678103200; 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=tVjFmA+xKegApFoxvCMg7Seqv5WIrbOgOoIDxnue8aI=; b=K+gb0OFPt47LudykrKXzNss5AlgOfgkTOnRUiO54RJ+JtAdz1jIgcaUrfKS1yROnch X/Gh6ArQ0NWivNoijrBH5uFL5LpvVV8/Gvo+Ty/14OSwXzlNNFBgwlITYLWji+0IBGf6 rvL7KshDotOGRNN2aayk9eUx+DqpTjvFbJh3DaHv6VQouUWodHO9k1aI9O5HvKhxafjm TIqnOrvoTNwGhKk/oyYufAMPnA/+UnNnMARWamgLW4t8MnatmWD2yI02GGt8aU3bI87T oUCfmuojRvMTls6J55v9c736wISwX0R16YVbGPK6s4uVPTPzrMLHU19U6+zq2AHKS0+i wivQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678103200; 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=tVjFmA+xKegApFoxvCMg7Seqv5WIrbOgOoIDxnue8aI=; b=Kucogfq/UdbG7ByI1mEw76UeajkKNwxkg0H6EK73N2Ld+B/rjjp8oewNXSq9odN6J7 4n1m4AIGzMRR56wxWdiLMDFTqhShEVWrgowRJIWOSXL8TnhjGvLJ5/lcBW1+sjBbzKX6 uMqh2rSIEBIMUu9GkMEWLAKXGKJOfeUtdgpBLLFboYEScqvZxGsaY9TvlftNGfke//7b Nw0rRR7VBB8/ej17mOjgbNApy15fUQn4ho9mL72AwTOEBfAt2Y9hZ/Ak7biPNcI6wcRr jOVgBgqP5RUoetwGVYR3SnMH1jOeCR+rldr/PLLBUZt56GIIl9uQvPaqqSEJYqGyY4Jy Pizw== X-Gm-Message-State: AO0yUKXCEiJGZjlOAnhx9D33fzSR3SY/rJvrSONqcQV4llyx/xWpQVKw ZXRD2OaKFjwhqbS4MLjBUWVpcVTllOd18wSkmjdpUUvI X-Google-Smtp-Source: AK7set+9IPtTVOojOw+tgjLpP6YCo7HjgtvvssdDtZFwFLNHqOvSVqo3L+FApT/zNsXBNRfsCkSCJSqzj7hU2Irr4s8= X-Received: by 2002:aca:240d:0:b0:384:22aa:f4cf with SMTP id n13-20020aca240d000000b0038422aaf4cfmr2879451oic.8.1678103200433; Mon, 06 Mar 2023 03:46:40 -0800 (PST) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::231; envelope-from=joaotavora@gmail.com; helo=mail-oi1-x231.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:304031 Archived-At: On Mon, Mar 6, 2023 at 11:31=E2=80=AFAM Pedro Andres Aranda Gutierrez wrote: > >Then they should be upgraded so that they do become suitable, because > >this is first and foremost about editing variables. > > There you could face resistance from people using the already existing > functionality. That's why we should discuss and come up with a solution that is backward compatible with existing usage. Business as usual, I'm afraid. > > For example, there could be: > > * 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? > > I for me am not completely convinced that "VSCode-alike is good" ;-) Precisely: neither am I. But others seem to appreciate it and that's fine. You wouldn't be required to use that Eglot helper to enter the plist value. > And to be 'positive', if the main issue here is VScode <-> emacs compatib= ility > what about a layer to read VSCode configs and converting them to Emacs LI= SP. > Because that's something that may be challenging I think that's exactly what I'm proposing with the Eglot helper. (defun eglot-dotted-to-plist (strings) "Return plist suitable for adding to `eglot-workspace-configuration' STRINGS is a list of VSCode style dotted notation settings." ...) A fun exercise, probably. First stab at it gets a virtual cookie :-) Jo=C3=A3o