[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Renaming eglot -- or at least add an alias?

From: Po Lu
Subject: Re: Renaming eglot -- or at least add an alias?
Date: Tue, 04 Oct 2022 10:43:52 +0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux)

Richard Stallman <rms@gnu.org> writes:

> I thank Po Lu for posting that:
>     It uses an external program speaking the language server protocol to
>     provide completion-at-point and cross-referencing (think
>     xref-find-references and xref-find-definitions.)
> This says that Eglot uses the language server for two very specific jobs.
> Does Eglot define its own commands to complete and/or find referencs,
> or does it hook into other commands which do those jobs so that they
> can make use of the language server data to do them?

I think eglot aims to hook into existing commands and subsystems
whenever possible: flymake, completion-at-point, xref, et cetera.

>   > - enhanced documentation and feeds into eldoc
>   > - provide code actions to fix diagnostic/linter errors or suggest code
>   >   refactoring 
>   > - hovering over symbols provides function signatures/documentation
>   > - symbol renaming and other refactoring support
> This gives me the idea that Eglot causes various parts of Emacs to take
> advantage of parsing the file's language in order to do their jobs
> better.  Is that basically right?


> Does Eglot aim to make use of parsing in all the Emacs features
> where it could be of use?

I think so, yes.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]