[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: Eli Zaretskii
Subject: Re: Renaming eglot -- or at least add an alias?
Date: Tue, 04 Oct 2022 10:06:18 +0300

> From: Richard Stallman <rms@gnu.org>
> Cc: emacs-devel@gnu.org
> Date: Mon, 03 Oct 2022 21:01:59 -0400
> 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.

Actually, it can be used for many more specific jobs.  Basically, any
job that requires understanding of the program's syntax and structure
can use language servers via Eglot.  Someone else posted a longer list
of such jobs:

  > - 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

And the full list is really unbounded (although some jobs are not yet
supported by Emacs, perhaps because they are too hard or impossible
without a language server).

> 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?

It provides an opportunity and infrastructure for doing that.

reply via email to

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