From: Michael Heerdegen <michael_heerdegen@web.de>
To: help-gnu-emacs@gnu.org
Subject: Re: How to add syntax-highlighting to a Help buffer?
Date: Sat, 04 Jul 2015 17:25:07 +0200 [thread overview]
Message-ID: <878uawlzcc.fsf@web.de> (raw)
In-Reply-To: 878uaw3qpc.fsf@nl106-137-147.student.uu.se
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.
next prev parent reply other threads:[~2015-07-04 15:25 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-03 7:59 How to add syntax-highlighting to a Help buffer? Raffaele Ricciardi
2015-07-03 9:20 ` Vaidheeswaran C
2015-07-03 20:09 ` Emanuel Berg
2015-07-03 23:22 ` Michael Heerdegen
2015-07-04 15:09 ` Emanuel Berg
2015-07-04 15:25 ` Michael Heerdegen [this message]
2015-07-04 23:24 ` Emanuel Berg
2015-07-04 16:30 ` tomas
2015-07-04 23:25 ` Emanuel Berg
[not found] ` <mailman.6316.1436023528.904.help-gnu-emacs@gnu.org>
2015-07-04 17:29 ` Raffaele Ricciardi
2015-07-04 17:43 ` Michael Heerdegen
2015-07-04 23:31 ` Emanuel Berg
[not found] ` <mailman.6317.1436027452.904.help-gnu-emacs@gnu.org>
2015-07-04 17:54 ` Stefan Monnier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=878uawlzcc.fsf@web.de \
--to=michael_heerdegen@web.de \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).