GNU bug report logs - #6310
hi-lock-set-pattern, font-lock-mode, overlays and occur

Previous Next

Package: emacs;

Reported by: Lennart Borgman <lennart.borgman <at> gmail.com>

Date: Sun, 30 May 2010 01:22:02 UTC

Severity: wishlist

Tags: moreinfo

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Lennart Borgman <lennart.borgman <at> gmail.com>
To: Emacs Bugs <bug-gnu-emacs <at> gnu.org>
Subject: hi-lock-set-pattern, font-lock-mode, overlays and occur
Date: Sun, 30 May 2010 03:21:14 +0200
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?




This bug report was last modified 3 years and 322 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.