GNU bug report logs - #39820
wrong face is assigned to comment delimiter in lisp-mode

Previous Next

Package: emacs;

Reported by: chuntaro <at> sakura-games.jp

Date: Fri, 28 Feb 2020 10:28:01 UTC

Severity: minor

Tags: confirmed, fixed

Found in versions 26.3, 25.3, 27.0.60

Fixed in version 28.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: chuntaro <at> sakura-games.jp
To: bug-gnu-emacs <at> gnu.org
Subject: wrong face is assigned to comment delimiter in lisp-mode
Date: Fri, 28 Feb 2020 19:26:58 +0900
[Message part 1 (text/plain, inline)]
Start emacs -Q and evaluate the following with *scratch*.

(set-face-foreground 'font-lock-comment-face "green")
(set-face-foreground 'font-lock-comment-delimiter-face "red")

Open `foo.lisp' with C-x C-f and enter as follows.

#|
comment
|#

As a result, the correct face is not assigned to the closing delimiter.

#|      <- font-lock-comment-delimiter-face
comment <- font-lock-comment-face
|#      <- font-lock-comment-face <- Wrong face

Occurs in Emacs 25.2, 26.1 and 27.0.60.

Normally, both colors are the same, so no one may have noticed until now.
I noticed recently because I was using a zenburn theme with slightly
different colors.

-- 
chuntaro
[bug.png (image/png, attachment)]

This bug report was last modified 4 years and 168 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.