unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#50989: 28.0.60; nobreak-char-display in Eldoc buffers
@ 2021-10-03 10:02 Augusto Stoffel
  2021-10-03 10:34 ` João Távora
  0 siblings, 1 reply; 8+ messages in thread
From: Augusto Stoffel @ 2021-10-03 10:02 UTC (permalink / raw)
  To: 50989; +Cc: João Távora

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





^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2021-10-05 21:16 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

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