unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#39820: wrong face is assigned to comment delimiter in lisp-mode
@ 2020-02-28 10:26 chuntaro
  2021-01-29  6:41 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 4+ messages in thread
From: chuntaro @ 2020-02-28 10:26 UTC (permalink / raw)
  To: 39820

[-- Attachment #1: Type: text/plain, Size: 659 bytes --]

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

[-- Attachment #2: bug.png --]
[-- Type: image/png, Size: 89947 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#39820: wrong face is assigned to comment delimiter in lisp-mode
  2020-02-28 10:26 bug#39820: wrong face is assigned to comment delimiter in lisp-mode chuntaro
@ 2021-01-29  6:41 ` Lars Ingebrigtsen
  2021-01-31  6:59   ` Lars Ingebrigtsen
  0 siblings, 1 reply; 4+ messages in thread
From: Lars Ingebrigtsen @ 2021-01-29  6:41 UTC (permalink / raw)
  To: chuntaro; +Cc: 39820

chuntaro@sakura-games.jp writes:

> 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.

Thanks for the clear recipe for reproduction.

This should now be fixed in Emacs 28.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#39820: wrong face is assigned to comment delimiter in lisp-mode
  2021-01-29  6:41 ` Lars Ingebrigtsen
@ 2021-01-31  6:59   ` Lars Ingebrigtsen
       [not found]     ` <86h7munbxs.fsf@sakura-games.jp>
  0 siblings, 1 reply; 4+ messages in thread
From: Lars Ingebrigtsen @ 2021-01-31  6:59 UTC (permalink / raw)
  To: chuntaro; +Cc: 39820

Lars Ingebrigtsen <larsi@gnus.org> writes:

> chuntaro@sakura-games.jp writes:
>
>> 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.
>
> Thanks for the clear recipe for reproduction.
>
> This should now be fixed in Emacs 28.

The fix wasn't the correct one (leading to M-; inserting |#), so I've
reverted it for now, and I'm reopening this bug report.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#39820: wrong face is assigned to comment delimiter in lisp-mode
       [not found]     ` <86h7munbxs.fsf@sakura-games.jp>
@ 2021-02-02  9:19       ` Lars Ingebrigtsen
  0 siblings, 0 replies; 4+ messages in thread
From: Lars Ingebrigtsen @ 2021-02-02  9:19 UTC (permalink / raw)
  To: chuntaro; +Cc: 39820

chuntaro <chuntaro@sakura-games.jp> writes:

> I think I was able to fix #39820 by doing the following.

Thanks; that fixes the problem here too, so I've pushed this to Emacs
28.

This change was small enough to apply without assigning copyright to the
FSF, but for future patches you want to submit, it might make sense to
get the paperwork started now, so that subsequent patches can be applied
speedily. Would you be willing to sign such paperwork?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-02-02  9:19 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-28 10:26 bug#39820: wrong face is assigned to comment delimiter in lisp-mode chuntaro
2021-01-29  6:41 ` Lars Ingebrigtsen
2021-01-31  6:59   ` Lars Ingebrigtsen
     [not found]     ` <86h7munbxs.fsf@sakura-games.jp>
2021-02-02  9:19       ` Lars Ingebrigtsen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).