From: "João Távora" <joaotavora@gmail.com>
To: Augusto Stoffel <arstoffel@gmail.com>
Cc: 50989@debbugs.gnu.org
Subject: bug#50989: 28.0.60; nobreak-char-display in Eldoc buffers
Date: Sun, 3 Oct 2021 11:34:32 +0100 [thread overview]
Message-ID: <CALDnm528TD_pXcb1Ap2yR8N-8_NadrRse2s7gf0-ux3-RCknGA@mail.gmail.com> (raw)
In-Reply-To: <87ilyev33a.fsf@gmail.com>
On Sun, Oct 3, 2021 at 11:03 AM Augusto Stoffel <arstoffel@gmail.com> wrote:
>
> Using the pylsp language server via Eglot, I sometimes get docstrings
> with lots of non-breaking spaces in them. Those end up being
> highlighted with the `nobreak-space' face in the Eldoc buffer, which is
> very distracting.
>
> I'm not sure this should be addressed in Eglot or in Eldoc. But the
> following advice fixes things for me.
>
> (advice-add 'eldoc--format-doc-buffer :after
> (lambda (&rest _) "Don't display non-breaking spaces."
> (with-current-buffer eldoc--doc-buffer
> (setq-local nobreak-char-display nil))))
I'd say put this in ElDoc directly. If someone then objects, we could make a
eldoc-no-break-char-display variable. Can you make a patch?
João
next prev parent reply other threads:[~2021-10-03 10:34 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-03 10:02 bug#50989: 28.0.60; nobreak-char-display in Eldoc buffers Augusto Stoffel
2021-10-03 10:34 ` João Távora [this message]
2021-10-03 11:07 ` Eli Zaretskii
2021-10-03 11:12 ` João Távora
2021-10-03 11:25 ` Eli Zaretskii
2021-10-03 11:39 ` Augusto Stoffel
2021-10-05 9:13 ` Lars Ingebrigtsen
2021-10-05 21:16 ` Richard Stallman
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=CALDnm528TD_pXcb1Ap2yR8N-8_NadrRse2s7gf0-ux3-RCknGA@mail.gmail.com \
--to=joaotavora@gmail.com \
--cc=50989@debbugs.gnu.org \
--cc=arstoffel@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).