Subject: bug#77966: 30.1; Text wrongly displayed with font-lock-warning-face

From: Eli Zaretskii <[email-masked]>
Date: Mon, 21 Apr 2025 21:32:28 +0300

tags 77966 notabug
thanks

> From: Vangelis Evangelou <[email-masked]>
> Date: Mon, 21 Apr 2025 18:03:35 +0100
> 
> Start emacs with emacs -Q and paste the following text in the scratch buffer
> 
> ;;;; Start copy ;;;;
> (defun test (nil)
>   (test1
>     (test2
>     "") "***"))
> ;;;; End copy ;;;;
> 
> You will see that the last 7 characters of the last line, i.e., "***")) are shown with the wrong face. If you insert
> a new line before those characters, the correct face is shown.

It's a feature, not a bug.  Move your mouse pointer so it's over the
text displayed in warning face, and read what the tooltip says to
understand why Emacs does that.