From: Troy Brown <brownts@troybrown.dev>
To: Felician Nemeth <felician.nemeth@gmail.com>
Cc: 70929@debbugs.gnu.org
Subject: bug#70929: 30.0.50; eglot--apply-text-edits prevents point adjustment
Date: Tue, 14 May 2024 08:38:59 -0400 [thread overview]
Message-ID: <CABvCZ41g6kXuHsHzxBRdLCm7MhKESMRXTa7Ox6RfWNwJnU23Vw@mail.gmail.com> (raw)
In-Reply-To: <87le4d55b7.fsf@betli.tmit.bme.hu>
On Tue, May 14, 2024 at 1:30 AM Felician Nemeth
<felician.nemeth@gmail.com> wrote:
>
> If I remember correctly, the LSP specification does not say where the
> point should be after onTypeFormatting. Something like this motivated
> the rust-analyzer developers to introduce their own SnippetTextEdit
> extension. The upcoming LSP version is going to contain a slightly
> different version of the SnippetTextEdit.
>
> If my memories are correct, Ada Language Server should use this
> SnippetTextEdit to unambiguously communicate its intent here. (However,
> Eglot does not currently supports SnippetTextEdit.)
It was my understanding as well that they went out of their way to not
indicate point location, however you end up with editors doing
different things. Maybe the Ada LS should take a different approach
here though, as you mention.
next prev parent reply other threads:[~2024-05-14 12:38 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-14 2:15 bug#70929: 30.0.50; eglot--apply-text-edits prevents point adjustment Troy Brown
2024-05-14 5:30 ` Felician Nemeth
2024-05-14 12:38 ` Troy Brown [this message]
2024-05-14 6:23 ` Eli Zaretskii
2024-05-14 9:28 ` João Távora
2024-05-14 12:43 ` Troy Brown
2024-05-14 14:16 ` João Távora
2024-05-15 12:58 ` Troy Brown
2024-05-15 15:10 ` João Távora
2024-05-21 3:35 ` Troy Brown
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=CABvCZ41g6kXuHsHzxBRdLCm7MhKESMRXTa7Ox6RfWNwJnU23Vw@mail.gmail.com \
--to=brownts@troybrown.dev \
--cc=70929@debbugs.gnu.org \
--cc=felician.nemeth@gmail.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.