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: Fri, 10 Mar 2023 07:59:54 +0000 Message-ID: References: <86sfeisu49.fsf@stephe-leake.org> <87356gvkkb.fsf@gmail.com> <87r0tz8jag.fsf_-_@gmail.com> <87lek78eyq.fsf@gmail.com> <6866252E-DA6D-4399-B4CD-06C0E44B3A03@gmail.com> <871qlyfic2.fsf@gmail.com> <86o7p2qgmh.fsf@mail.linkov.net> <8275EC74-8AE5-494E-9E09-EB68D4792C01@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000043db5f05f68726ac" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12005"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Juri Linkov , Augusto Stoffel , Stephen Leake , Emacs developers To: Yuan Fu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Mar 10 09:01:23 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 1paXgp-0002wN-M8 for ged-emacs-devel@m.gmane-mx.org; Fri, 10 Mar 2023 09:01:23 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1paXfz-0000Uw-JQ; Fri, 10 Mar 2023 03:00:31 -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 1paXfh-0000UV-Ig for emacs-devel@gnu.org; Fri, 10 Mar 2023 03:00:14 -0500 Original-Received: from mail-oi1-x235.google.com ([2607:f8b0:4864:20::235]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1paXfc-0003rq-5W for emacs-devel@gnu.org; Fri, 10 Mar 2023 03:00:09 -0500 Original-Received: by mail-oi1-x235.google.com with SMTP id bg11so3627409oib.5 for ; Fri, 10 Mar 2023 00:00:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678435206; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=IRDlNCp+BhIqPI6jcZuwIxhFNvKxXvDjFgTNVrqEbNQ=; b=KSIGA5WycS240GRSqFjN4WlAH2AJmAybn0PRnlku8COhkm/zYNL7Ji/5L284Gy2EpA XbBwfwMU56c/Sho+ZBds8yun9PPthguvUYg1Nr5ru1GMVJTa3hBhWrQn5KJPjK5/exRs gNP8zdewpwXqR8BXYNSzIZ93TatllvNirtCT0xBhJ2Z3GrQPiu3jQPxb2UBuI50TrIN+ /YzL77RG3UCz0RMw0NKT+OWmSANzx4vqplZ1surEiDL+TVwschmIgxlWwfnzzDbArqAV pUS01YF35Fv/527OrllF6TmsO5OiSRDARjKyR6hI8+JhEXT9oFWgJBpk+vrc+YzlpWs/ 5sdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678435206; h=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=IRDlNCp+BhIqPI6jcZuwIxhFNvKxXvDjFgTNVrqEbNQ=; b=rROj/ETK+2QwyZ5zsjxnM+hqgiQSKjYwpAdQvI5wPQCnW/7iHkKA39sebBECHPnZll GSzIY34Uoo2mvgrsavmMgNxiBC9PHG3OYjfYSxDriq8rAZyKhQYjTl3a/wKm0yp2L60M 8G30d6ptR+dnBw5X0UvV/9EqZCHuKUPliqwpiwE8IM/U5gPzb86EcyTz+E1auFS2GrHH AGMgh1Ss1rxDl/fxxtVAZIjpnrr5cPrsffMHJSh4oOp/K1sVxPY7stOCZXZLhepX4i4x kowIwS1JWBQP/V0r3Ns8rIihTCVVpQSxYoauE1RPRdyvmOPndrQ7V5zcbx/D19HTNQ/2 vI+Q== X-Gm-Message-State: AO0yUKURoy4FWfR9jv05IyuW5UAIeCzVTdaTz64wlHC3Hf38OxoLtkp/ apGhybYk5EEiQB6HPcoHc9Nlki4hGHRH0rPZqP4= X-Google-Smtp-Source: AK7set9zOnDZmOc0ceHYCH1oqlU7L4rF0MtHZDYCoEISmqjbJKyJfGBa69TZ/hWOF0r+r9VdAh+gwsXqOsYLPTWgrJo= X-Received: by 2002:aca:1a0d:0:b0:36e:f6f5:66a2 with SMTP id a13-20020aca1a0d000000b0036ef6f566a2mr8467756oia.8.1678435206551; Fri, 10 Mar 2023 00:00:06 -0800 (PST) In-Reply-To: <8275EC74-8AE5-494E-9E09-EB68D4792C01@gmail.com> Received-SPF: pass client-ip=2607:f8b0:4864:20::235; envelope-from=joaotavora@gmail.com; helo=mail-oi1-x235.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, HTML_MESSAGE=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:304231 Archived-At: --00000000000043db5f05f68726ac Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, Mar 10, 2023, 06:26 Yuan Fu wrote: > > > 'read-string-from-buffer' was intended to do this by relying on > > 'string-edit'. You could add a new function e.g. named > > 'read-expression-from-buffer' that does the same as > > 'read--expression' but using a buffer instead of the minibuffer. > > Of course Emacs has one built-in :-) I=E2=80=99ll see if I can make some > improvement to the read-string-from-buffer functions. In particular, I > think arbitrary setup function and validator would be useful additions. > If I'm following you correctly, also a serializer/deserializer function pair, so the user can edit expressions in non-lisp syntax and still have them stored as lisp values. Jo=C3=A3o > --00000000000043db5f05f68726ac Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Fri, Mar 10, 2023, 06:26 Yuan Fu <casouri@gmail.com> wrote:

> 'read-string-from-buffer' was intended to do this by relying o= n
> 'string-edit'.=C2=A0 You could add a new function e.g. named > 'read-expression-from-buffer' that does the same as
> 'read--expression' but using a buffer instead of the minibuffe= r.

Of course Emacs has one built-in :-) I=E2=80=99ll see if I can make some im= provement to the read-string-from-buffer functions. In particular, I think = arbitrary setup function and validator would be useful additions.

If I'm follo= wing you correctly, also a serializer/deserializer function pair, so the us= er can edit expressions in non-lisp syntax and still have them stored as li= sp values.

Jo=C3=A3o
--00000000000043db5f05f68726ac--