[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 01:22:39 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) |
Raffaele Ricciardi <rfflrccrd@gmail.com> writes:
> (font-lock-add-keywords
> nil
> `(("\\(arbitrary regexp\\)" 1 'font-lock-function-name-face)))
>
> But the above expression breaks the existing highlighting (the
> highlighting of the function arguments disappears).
AFAICT you experience a normal "feature" of font-lock-mode.
help-mode doesn't use font-lock. It directly attaches face text
properties to the buffer text. If font-lock-mode fontifies such a
buffer (it doesn't as long as font-lock-keywords is nil even when it is
active), all face text properties get ignored by the display engine.
Note that there is a font-lock-face text property existing as well.
hi-lock works in this case because it handles that case specially and
uses overlays.
HTH,
Michael.
- How to add syntax-highlighting to a Help buffer?, Raffaele Ricciardi, 2015/07/03
- Re: How to add syntax-highlighting to a Help buffer?, Vaidheeswaran C, 2015/07/03
- Re: How to add syntax-highlighting to a Help buffer?, Emanuel Berg, 2015/07/03
- Re: How to add syntax-highlighting to a Help buffer?,
Michael Heerdegen <=
- Message not available
- Re: How to add syntax-highlighting to a Help buffer?, Raffaele Ricciardi, 2015/07/04
- Re: How to add syntax-highlighting to a Help buffer?, Michael Heerdegen, 2015/07/04
- Re: How to add syntax-highlighting to a Help buffer?, Emanuel Berg, 2015/07/04
- Message not available
- Re: How to add syntax-highlighting to a Help buffer?, Stefan Monnier, 2015/07/04