From: Lennart Borgman <lennart.borgman@gmail.com>
To: 6310@debbugs.gnu.org
Subject: bug#6310: hi-lock-set-pattern, font-lock-mode, overlays and occur
Date: Sun, 30 May 2010 03:21:14 +0200 [thread overview]
Message-ID: <AANLkTinKEdFqBWdWMfZgfRYTG65tmOK4aVc2MKsTCPqM@mail.gmail.com> (raw)
I will never understand font-lock-add-keywords, but here are some
thoughts about it and hi-lock-set-pattern.
hi-lock-set-pattern can operate with and without font lock. In the
latter case it uses overlays.
However it locks to me like it mixes those two ways a bit:
- It calls font-lock-add-keywords even when it is going to use overlays.
- Secondly it checks font-lock-fontified instead of font-lock-mode to
see whether to use overlays or not.
And it does not seem to know about jit-lock:
- It calls font-lock-fontify-buffer instead of jit-lock-refontify.
This mean that it can't work in ocurr buffers.
Beside that font-lock-mode is t in occur buffers. Is font lock used there, or?
next reply other threads:[~2010-05-30 1:21 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-30 1:21 Lennart Borgman [this message]
2021-06-03 8:51 ` bug#6310: hi-lock-set-pattern, font-lock-mode, overlays and occur Lars Ingebrigtsen
2021-07-02 11:18 ` Lars Ingebrigtsen
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=AANLkTinKEdFqBWdWMfZgfRYTG65tmOK4aVc2MKsTCPqM@mail.gmail.com \
--to=lennart.borgman@gmail.com \
--cc=6310@debbugs.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.