all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "João Távora" <joaotavora@gmail.com>
To: Dave Abrahams <dave@boostpro.com>
Cc: 67870@debbugs.gnu.org
Subject: bug#67870: 29.1; Eglot missing or un-findable advertised feature
Date: Mon, 18 Dec 2023 17:00:27 +0000	[thread overview]
Message-ID: <CALDnm52=op-kNtQr7obFygpNFFwgN8rDZCkydxT_oVY5gfiL=Q@mail.gmail.com> (raw)
In-Reply-To: <F8B6C662-325A-4456-BF60-FBFBFF155200@boostpro.com>

On Sun, Dec 17, 2023 at 7:40 PM Dave Abrahams <dave@boostpro.com> wrote:

> The info page for Eglot says:
>
> 3.1 Eglot features:
>
>    • On-the-fly diagnostic annotations with server-suggested fixes, via
>      the Flymake package (*note (flymake)Top::).
>
> But I can find no evidence of the support for server-suggested fixes
> either in flymake or in eglot itself.  I am working with an LSP server
> that offers fix-its but can't find any way to apply them.

Isn't very hard to find in "3.3 Eglot commands" IMO

‘M-x eglot-code-actions’
‘M-x eglot-code-action-organize-imports’
‘M-x eglot-code-action-quickfix’
‘M-x eglot-code-action-extract’
‘M-x eglot-code-action-inline’
‘M-x eglot-code-action-rewrite’
     These commands allow you to invoke the so-called “code actions”:
     requests for the language server to provide editing commands for
     correcting, refactoring or beautifying your code.  These commands
     may affect more than one visited file belonging to the project.

     The command ‘eglot-code-actions’ asks the server if there [are] any code
     actions for any point in the buffer or contained in the active
     region.  If there are, you have the choice to execute one of them
     via the minibuffer.

     A common use of code actions is fixing the Flymake error
     diagnostics issued by Eglot (*note (flymake)Top::).  Clicking on a
     diagnostic with ‘mouse-2’ invokes ‘eglot-code-actions-at-mouse’
     which pops up a menu of available code actions.  The variable
     ‘eglot-diagnostics-map’ can be used to control the mouse binding.

     Other commands execute a specific code action.  For example,
     ‘eglot-code-action-organize-imports’ rearranges the program's
     “imports”--declarations of modules whose capabilities the program
     uses.

> Either what's meant by this should be clarified, leading to discoverable
> instructions for exploiting the feature, or the text should be removed.

That's just a summarized list of the main features, a detailed description
doesn't of how to use the feature doesn't belong there.  But patches welcome for
a link down to 3.3 (and fixing the typo while you're at it).

João





  parent reply	other threads:[~2023-12-18 17:00 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-17 19:38 bug#67870: 29.1; Eglot missing or un-findable advertised feature Dave Abrahams
     [not found] ` <handler.67870.B.17028419482015.ack@debbugs.gnu.org>
2023-12-17 20:23   ` bug#67870: Acknowledgement (29.1; Eglot missing or un-findable advertised feature) Dave Abrahams
2023-12-18 17:07     ` João Távora
2023-12-18 17:00 ` João Távora [this message]
2023-12-18 19:10   ` bug#67870: 29.1; Eglot missing or un-findable advertised feature Dave Abrahams
2023-12-18 19:59     ` João Távora
2023-12-19  8:15       ` Dave Abrahams
2023-12-19  8:51         ` João Távora
2023-12-22  3:14           ` Richard Stallman
2023-12-22  9:29             ` João Távora
2023-12-22  9:41               ` João Távora
2023-12-22 17:47               ` Dave Abrahams
2023-12-24 20:27                 ` Stefan Kangas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CALDnm52=op-kNtQr7obFygpNFFwgN8rDZCkydxT_oVY5gfiL=Q@mail.gmail.com' \
    --to=joaotavora@gmail.com \
    --cc=67870@debbugs.gnu.org \
    --cc=dave@boostpro.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.