unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#6310: hi-lock-set-pattern, font-lock-mode, overlays and occur
@ 2010-05-30  1:21 Lennart Borgman
  2021-06-03  8:51 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 3+ messages in thread
From: Lennart Borgman @ 2010-05-30  1:21 UTC (permalink / raw)
  To: 6310

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?





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#6310: hi-lock-set-pattern, font-lock-mode, overlays and occur
  2010-05-30  1:21 bug#6310: hi-lock-set-pattern, font-lock-mode, overlays and occur Lennart Borgman
@ 2021-06-03  8:51 ` Lars Ingebrigtsen
  2021-07-02 11:18   ` Lars Ingebrigtsen
  0 siblings, 1 reply; 3+ messages in thread
From: Lars Ingebrigtsen @ 2021-06-03  8:51 UTC (permalink / raw)
  To: Lennart Borgman; +Cc: 6310

Lennart Borgman <lennart.borgman@gmail.com> writes:

> 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?

(I'm going through old bug reports that unfortunately got no response at
the time.)

This bug report doesn't have a clear recipe, but I tried using
(hi-lock-set-pattern "This" 'highlight) in an *Occur* buffer, and it
seems to work fine.

So has this problem gone away in the years since it was reported, or are
you still seeing issues?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#6310: hi-lock-set-pattern, font-lock-mode, overlays and occur
  2021-06-03  8:51 ` Lars Ingebrigtsen
@ 2021-07-02 11:18   ` Lars Ingebrigtsen
  0 siblings, 0 replies; 3+ messages in thread
From: Lars Ingebrigtsen @ 2021-07-02 11:18 UTC (permalink / raw)
  To: Lennart Borgman; +Cc: 6310

Lars Ingebrigtsen <larsi@gnus.org> writes:

> This bug report doesn't have a clear recipe, but I tried using
> (hi-lock-set-pattern "This" 'highlight) in an *Occur* buffer, and it
> seems to work fine.
>
> So has this problem gone away in the years since it was reported, or are
> you still seeing issues?

More information was requested, but no response was given within a
month, so I'm closing this bug report.  If the problem still exists,
please respond to this email and we'll reopen the bug report.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-07-02 11:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-05-30  1:21 bug#6310: hi-lock-set-pattern, font-lock-mode, overlays and occur Lennart Borgman
2021-06-03  8:51 ` Lars Ingebrigtsen
2021-07-02 11:18   ` Lars Ingebrigtsen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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).