[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#56337: 28.1; Incorrect output by C-u C-x =
From: |
Eli Zaretskii |
Subject: |
bug#56337: 28.1; Incorrect output by C-u C-x = |
Date: |
Fri, 01 Jul 2022 17:18:44 +0300 |
> From: Ikumi Keita <ikumi@ikumi.que.jp>
> Date: Fri, 01 Jul 2022 22:44:49 +0900
>
> The command `what-cursor-position' reports that SPC has `nobreak-space'
> face, which isn't true.
>
> [How to reporoduce]
> 1. emacs -Q
> 2. Type SPC C-b C-u C-x =
> 3. In *Help* buffer, there is a line saying
> hardcoded face: nobreak-space
>
> I think this is a bug. SPC actually has no particular face;
> `nobreak-space' face has underline (at least on my display), but the SPC
> is displayed without underline.
>
> Here is the responsible code in descr-text.el:
> ----------------------------------------------------------------------
> (defun describe-char (pos &optional buffer)
> [...]
> ((and nobreak-char-display char
> (eq (get-char-code-property char
> 'general-category) 'Zs))
> 'nobreak-space)
> ----------------------------------------------------------------------
> This conditional should exclude the case that `char' is ASCII space.
Thanks, fixed for Emacs 28.2.