help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: How to add syntax-highlighting to a Help buffer?


From: Michael Heerdegen
Subject: Re: How to add syntax-highlighting to a Help buffer?
Date: Sat, 04 Jul 2015 17:25:07 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

Emanuel Berg <embe8573@student.uu.se> writes:

> One question is, why doesn't help-mode do this the
> customary way?

`font-lock-mode' is not so useful for the fontification of Help buffers,
so it makes sense not to use it.  For highlighting regexps, as in your
examples, hi-lock is just fine.  *Help* is mostly text, not code.

OTOH the code could be easily rewritten to use font-lock-mode and
propertize via the font-lock-face text property.  I guess the reason for
that this is not the case is just that *Help* is much older than
font-lock-face, and nobody yet wanted/needed/requested to use
font-lock-mode in *Help*.


Michael.




reply via email to

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