emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: font-lock-comment-delimiter-face


From: Stefan Monnier
Subject: Re: font-lock-comment-delimiter-face
Date: Tue, 26 Apr 2005 16:58:40 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (darwin)

> I introduced a new face, font-lock-comment-delimiter-face,
> to make it possible to customize separately the fontification
> of comment delimiters and comment text.  I also set up Rmail
> and Sendmail modes to use this.

Seems odd to introduce a new face whose name refers to "comment" even though
the only two known uses for it are not for comments but for email citations.

> However, lots of other modes ought to be set up to use it.
> Can people please go to work on those modes?

It could be directly added in a generic way to
font-lock-fontify-syntactically-region.  But really, I haven't seen much of
a need for such fine-grained font-locking of comment delimiters.

I'm surprised you opted for such a disruptive "solution" to your problem,
when a much simpler one was proposed.  I.e. I'd have much preferred the
introduction of a new mail-citation-face (message has one already called
message-cited-text-face), which could by defaut just inherit from
font-lock-comment-face but which you could change to be more legible for
your specific needs.  You wouldn't get the specific look you currently
have, but it might be good enough, and if not, you can always get your
particular look using font-lock-add-keywords.


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]