From: Eli Zaretskii <eliz@gnu.org>
To: Troy Brown <brownts@troybrown.dev>
Cc: 72597@debbugs.gnu.org, felician.nemeth@gmail.com, joaotavora@gmail.com
Subject: bug#72597: 30.0.60; Eglot: MarkedString with embedded Carriage Return
Date: Mon, 02 Sep 2024 14:24:29 +0300 [thread overview]
Message-ID: <864j6y9u36.fsf@gnu.org> (raw)
In-Reply-To: <CABvCZ43yGB4+uCWSvgUZdB5PWzpSD7ZmVJJo3xS9Aw+vq++Fjw@mail.gmail.com> (message from Troy Brown on Sun, 1 Sep 2024 16:49:04 -0400)
> From: Troy Brown <brownts@troybrown.dev>
> Date: Sun, 1 Sep 2024 16:49:04 -0400
> Cc: joaotavora@gmail.com, felician.nemeth@gmail.com, 72597@debbugs.gnu.org
>
> On Sat, Aug 31, 2024 at 3:55 AM Eli Zaretskii <eliz@gnu.org> wrote:
> >
> > Ping! How can we make progress with this issue?
> >
>
> Just FYI, for the time being I've been using this "return filter"
> advice on eglot--format-markup which splits all lines irregardless of
> the EOL marker and rejoins them with a newline. It's a bit
> heavy-handed, but it gets the job done.
>
> (defun init.el/fix-eol/eglot--format-markup (value)
> (let ((strings (list value)))
> (dolist (eol '("\r\n" "\n" "\r"))
> (setq strings
> (flatten-list (mapcar (lambda (value)
> (split-string value eol))
> strings))))
> (string-join strings "\n")))
>
> (advice-add 'eglot--format-markup :filter-return
> #'init.el/fix-eol/eglot--format-markup)
Thanks, but isn't the above the same as setting the car of
process-coding-system for the Eglot subprocesses to 'dos'?
next prev parent reply other threads:[~2024-09-02 11:24 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-13 1:16 bug#72597: 30.0.60; Eglot: MarkedString with embedded Carriage Return Troy Brown
2024-08-13 11:18 ` Eli Zaretskii
2024-08-13 18:32 ` Felician Nemeth
2024-08-13 18:45 ` João Távora
2024-08-13 21:35 ` Troy Brown
2024-08-14 4:37 ` Eli Zaretskii
2024-08-14 5:54 ` Felician Nemeth
2024-08-14 6:37 ` Eli Zaretskii
2024-08-14 11:41 ` Troy Brown
2024-08-31 7:55 ` Eli Zaretskii
2024-09-01 20:49 ` Troy Brown
2024-09-02 11:24 ` Eli Zaretskii [this message]
2024-09-02 12:31 ` João Távora
2024-09-05 21:32 ` Daniel Pettersson
2024-09-05 21:58 ` João Távora
2024-09-06 5:44 ` Eli Zaretskii
2024-09-06 16:00 ` Daniel Pettersson
2024-09-06 19:31 ` João Távora
2024-09-09 0:31 ` 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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=864j6y9u36.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=72597@debbugs.gnu.org \
--cc=brownts@troybrown.dev \
--cc=felician.nemeth@gmail.com \
--cc=joaotavora@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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).