bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#50989: 28.0.60; nobreak-char-display in Eldoc buffers


From: Augusto Stoffel
Subject: bug#50989: 28.0.60; nobreak-char-display in Eldoc buffers
Date: Sun, 03 Oct 2021 12:02:01 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.60 (gnu/linux)

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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]