From: Emanuel Berg <embe8573@student.uu.se>
To: help-gnu-emacs@gnu.org
Subject: Re: How to add syntax-highlighting to a Help buffer?
Date: Sun, 05 Jul 2015 01:31:18 +0200 [thread overview]
Message-ID: <87a8vbxzy1.fsf@nl106-137-147.student.uu.se> (raw)
In-Reply-To: cvqjghFog72U1@mid.individual.net
Raffaele Ricciardi <rfflrccrd@gmail.com> writes:
> I thought that Help buffers relied on Font Lock Mode
> because -- in a Help buffer -- `C-h v font-lock-mode
> RET' replied:
>
> Its value is t Local in buffer *Help*; global
> value is nil
>
> Non-nil if Font-Lock mode is enabled.
>
> Had the value of `font-lock-mode' been `nil',
> I would have thought otherwise.
Yeah, but just because it is enabled doesn't mean it
is used.
I don't know why it is enabled if it isn't used,
perhaps someone else can answer that.
> Now that I have understood how things work, I doubt
> that it would be beneficial to use Font Lock Mode in
> Help buffers, because the text could be mixed (for
> example: Emacs Lisp code and regular text).
That is not a problem and that happens all the time.
The regexps are so advanced.
This sentence -
describe-key is an interactive compiled Lisp
function in `help.el'
- can be picked apart with only one regexp, and with
groups every single word can be highlighted in
a different color, and none of that that appears
anywhere else would get that color.
I'll do an example some other time and show you.
But if you don't want it, I still want it :)
--
underground experts united
http://user.it.uu.se/~embe8573
next prev parent reply other threads:[~2015-07-04 23:31 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
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 [this message]
[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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87a8vbxzy1.fsf@nl106-137-147.student.uu.se \
--to=embe8573@student.uu.se \
--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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.