From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= Newsgroups: gmane.emacs.devel Subject: Re: PL support Date: Sat, 9 May 2020 19:19:22 +0100 Message-ID: References: <9mmFgzvrBwjt_n_VJyaJdXINraNi5HsGpwq-0MLeKiJA7kG2BQA4uywrzjyz7lpRS0OZDpjEi8lspOKYUA7P_QsODsDew_8nbH960G55fmY=@protonmail.com> <87d07xamrg.fsf@ericabrahamsen.net> <878silajdl.fsf@ericabrahamsen.net> <87tv18pyh4.fsf@russet.org.uk> <83zhaih0oz.fsf@gnu.org> <83pnbegsvm.fsf@gnu.org> <83imh5hby1.fsf@gnu.org> <2e4e8ce9-d857-f3e3-31cf-a40dee67bd25@yandex.ru> <83y2q1dsvh.fsf@gnu.org> <2468efa6-7dbd-8634-44cc-586bb6985f49@yandex.ru> <83pnbddrfd.fsf@gnu.org> <83k11ldpxs.fsf@gnu.org> <83imh5dnun.fsf@gnu.org> <83h7wpdms7.fsf@gnu.org> <88771DA6-67FA-48E6-A7F4-CC0B1E17832B@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000d53ffa05a53b275e" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="6890"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , Dmitry Gutov , Stefan Monnier , emacs-devel To: Yuan Fu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat May 09 20:20:08 2020 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 1jXU50-0001hH-W7 for ged-emacs-devel@m.gmane-mx.org; Sat, 09 May 2020 20:20:07 +0200 Original-Received: from localhost ([::1]:55802 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jXU4z-0002Pg-Ib for ged-emacs-devel@m.gmane-mx.org; Sat, 09 May 2020 14:20:05 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38926) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jXU4V-0001zp-Rd for emacs-devel@gnu.org; Sat, 09 May 2020 14:19:35 -0400 Original-Received: from mail-il1-x12b.google.com ([2607:f8b0:4864:20::12b]:37345) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jXU4U-0006Yr-Ue; Sat, 09 May 2020 14:19:35 -0400 Original-Received: by mail-il1-x12b.google.com with SMTP id n11so4545895ilj.4; Sat, 09 May 2020 11:19:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=tZWHA2AbtbVxM33GV+JzaM2yRT4iTvH5bdXBAG1ir5o=; b=pZeHUP846XTas8dVrHLCZFWfeYKabqe6uFsyJ81QMtk/w4+cH5Ym+AUhoo0WeB3GnS M5ha3JAwM+U47nkXMKpLxLxJ8JuwbwTRo51SasTLTt/fYa8UlNfKqkiPXPSRb8NNkC0L NIElXS3BlgX4MvEXxLiUvN0CJ/Fe0sqEnyGlmu0+MZkCDv2uflb1+fbPNk+MaWBRjEpj ZHnTNpcOEfp0MlMhV//Nujr+hbCuSHtS7N4NsluejcmDVy1v4jqDg4ftorX7t+Z+3PIh LWYK10U3ZBZwjmhqxMxdQA7eQtOi3eEcrAbGRAvUT6s/dzaYH7X7gnOGgro4zCr7Q2Tz FTcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=tZWHA2AbtbVxM33GV+JzaM2yRT4iTvH5bdXBAG1ir5o=; b=B7kASd7HX/Ytu3niCRlwD+6Ds0kyYB4clesun5pLQb3NLpin6p4TG7nAvt1TrnmtWS TPxOHnZIPeREQdScaKVLapz+yXytyx376CP8XT1BV6iovHYIE6/nFS5oxlPcbuaiZMhC 6FC9be+P2y11/fneYGSvc24/KRig4hK6BVb/exnVmZgzFXaMGI9S74qp6RNzs9JpUvhs W6Bs5SgUuQybWUxgDOF1lMpD7kPAlRLZda8SW6MTtHRiJOKQpyPdoPD4VQ8KIdTUHTPM yXGhBSYnvTIyPrctO1W+CQVUofjAYAbEEoj2z0w3HkmjE5GU0FoQ/rScEjDscy3abQ++ cp9Q== X-Gm-Message-State: AGi0PuaJv9Xkt1DGhwH/xmqivZkVXZPWREMKlDQZgTCc9OsQ37wnbSis 7H6D/WbchFVP+pP3QswIr+ST7cOyg1BdzlPR41g= X-Google-Smtp-Source: APiQypIwoU/KCUwhX/QR24YENgQrccrNGwtdn6gcnqqxYaqvmBi5UdroWc6peAb0seaOuHs1BHShsYGWC5LvNobJYoM= X-Received: by 2002:a92:4a11:: with SMTP id m17mr8612211ilf.125.1589048373492; Sat, 09 May 2020 11:19:33 -0700 (PDT) In-Reply-To: <88771DA6-67FA-48E6-A7F4-CC0B1E17832B@gmail.com> Received-SPF: pass client-ip=2607:f8b0:4864:20::12b; envelope-from=joaotavora@gmail.com; helo=mail-il1-x12b.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.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, FROM_EXCESS_BASE64=0.979, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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" Xref: news.gmane.io gmane.emacs.devel:249532 Archived-At: --000000000000d53ffa05a53b275e Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sat, May 9, 2020 at 6:58 PM Yuan Fu wrote: > > What advantage would splitting and =E2=80=9Cdiluting=E2=80=9D eglot into = Emacs give tho? I > think eglot works pretty well already, one just installs eglot and a serv= er > and everything works. Not many immediate "killer" advantages, Yuan Fu, but: - eglot.el would be simplified, tho maybe only slightly. That is good. - language specific quirks (that do exist despite LSP) would be dealt with in the corresponding mode, not Eglot, by using Eglot's existing interfaces. - Eglot could grow _more_ programmatic interfaces for that to happen. It doesn't have them because it's the chicken and the egg. - More importantly, many bugs that target Eglot's UI but are actually Emacs's would come here. Discussing them in Github and hailing (mostly) Stefan and Dmitry there works, sort of, but it would be better if we used the Emacs bug tracker (yes I know there are strong opinions on this). But at the very least people like Eli and Richard would be able to participate regularly in those discussions, and provide insight that just doesn't reach the Github-sphere. The dev version of eglot would have always nicer integration with eldoc.el, flymake.el, xref.el, project.el, so it would become a much better program. And it could still be distributed in GNU Elpa, for older versions of Emacs to use. Let me give you an example: didn't your eglot-box thing end up being an eldoc-box instead? It should be in eldoc.el, it's a pretty good idea! Well if eglot was in the core, you'd just automatically do it for eldoc.el and get help on how to do it from seasoned Elispers who hang around here and not Github. Jo=C3=A3o --000000000000d53ffa05a53b275e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Sat, May 9, = 2020 at 6:58 PM Yuan Fu <casouri@gm= ail.com> wrote:

What advantage would splitting and =E2=80=9Cdiluting=E2=80=9D eglot into Em= acs give tho? I think eglot works pretty well already, one just installs eg= lot and a server and everything works.

Not = many immediate "killer" advantages, Yuan Fu, but:

<= /div>
- eglot.el would be simplified, tho maybe only slightly.=C2=A0 Th= at is good.

- language specific quirks (t= hat do exist despite LSP) would be dealt
=C2=A0 with in the corre= sponding mode, not Eglot, by using Eglot's
=C2=A0 existi= ng interfaces.

- Eglot could grow _more_ programma= tic interfaces for that
=C2=A0 to happen. It doesn't hav= e them because it's the chicken and
=C2=A0 the egg.

- More importantly, many bugs that target Eglot&= #39;s UI but are actually
=C2=A0 Emacs's would come here= . Discussing them in Github and hailing (mostly)
=C2=A0 Stefa= n and Dmitry there works, sort of, but it would be better if we used=C2=A0 = the
=C2=A0 Emacs bug tracker (yes I know there are strong opi= nions on this).=C2=A0 But at
=C2=A0 the very least people like El= i and Richard would be able to participate
=C2=A0 regularly in th= ose discussions, and provide insight that just doesn't
= =C2=A0 reach the Github-sphere.

=C2=A0 The dev ver= sion of eglot would have always nicer integration with
=C2= =A0 eldoc.el, flymake.el, xref.el, project.el, so it would become a much
=C2=A0 better program.=C2=A0 And it could still be distributed in G= NU Elpa, for
=C2=A0 older versions of Emacs to use.

Let me give you an example: didn't your eglot-box = thing end up being
an eldoc-box instead?=C2=A0 It should be in e= ldoc.el, it's a pretty good idea!
Well if eglot was in th= e core, you'd just automatically do it for eldoc.el
and=C2= =A0 get help on how to do it from seasoned Elispers who hang around
here and not Github.

Jo=C3=A3o
--000000000000d53ffa05a53b275e--