* eldoc-box.el (eldoc-box--replace-en-space): Use face-remap instead.

This commit is contained in:
Yuan Fu 2023-03-07 15:07:35 -08:00
parent 9bf84905e9
commit 17b86a8acd
No known key found for this signature in database
GPG Key ID: 56E19BC57664A442

View File

@ -630,11 +630,8 @@ childframe."
:height 0.4)))))))
(defun eldoc-box--replace-en-space ()
"Replace the en spaces in documentation with regular spaces."
(save-excursion
(goto-char (point-min))
(while (search-forward "" nil t)
(replace-match " "))))
"Display the en spaces in documentation as regular spaces."
(face-remap-set-base 'nobreak-space '(:inherit default)))
(defun eldoc-box--condense-large-newline-gaps ()
"Condense exceedingly large gaps made of consecutive newlines.