reddit / emacs

Unicode "thin-space" displays wrong in emacs 28.1, ok in 27.1, windows

ChristopherHGreen · 2022-09-17 19:12
I recently tried the switch from emacs 27.1 to 28.1 under windows, with no apparent problems, except: ​ The unicode "thin space" character displays as a small underline. It shows that way even when I tried a bunch of different fonts. Here is a display inside of ctrl-x-8: ​ https://preview.redd.it/ebbgp79cxgo91.png?width=502&format=png&auto=webp&s=a34b23f603f7a6be5d6b8fc9735933d26829237c Anyone else run into this? suggestions?
Patrick-Poitras · 2022-09-17 20:50
Emacs has a bunch of highlighting "faces" for characters that don't have a glyph. You can check the faces using `M-x describe-face` and then check if `nobreak-space` or `glyphless-char` are showing up as underline. To my knowledge, nobreak-space does do underlining by default. If that's the case, try customizing it to remove the underline. If that works, you can set that permanently in your init file.
ChristopherHGreen · 2022-09-19 15:39
Hmm I don't see any references to those sybols in describe-face?: ​ Face: font-lock-comment-face (sample) (customize this face) Documentation: Font Lock mode face used to highlight comments. Defined in ‘font-lock.el’. Family: Times New Roman Foundry: unspecified Width: unspecified Height: 0.95 Weight: unspecified Slant: italic Foreground: midnight blue DistantForeground: unspecified Background: unspecified Underline: unspecified Overline: unspecified Strike-through: unspecified Box: unspecified Inverse: unspecified Stipple: unspecified Font: unspecified Fontset: unspecified Extend: unspecified Inherit: unspecified
ChristopherHGreen · 2022-09-19 20:49
Oh I see, you mean to use describe-face on the face 'glyphless-char" and nobreak-space I checked it, and nobreak-space had an underline set and inherited from escape-glyph. turning both of these off seems to have fixed things.