GNU bug report logs - #41124
26.3; highlight regexp not working properly - not updating as you type

Previous Next

Package: emacs;

Reported by: jan <rtm443x <at> googlemail.com>

Date: Thu, 7 May 2020 11:33:01 UTC

Severity: normal

Found in version 26.3

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

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Michael Heerdegen <michael_heerdegen <at> web.de>
To: 41124 <at> debbugs.gnu.org
Cc: rtm443x <at> googlemail.com
Subject: bug#41124: 26.3; highlight regexp not working properly - not updating as you type
Date: Thu, 07 May 2020 19:29:25 +0200
jan via "Bug reports for GNU Emacs, the Swiss army knife of text
editors" <bug-gnu-emacs <at> gnu.org> writes:

> First ensure font-lock mode is on. Prefix arg forces it on.
>
>    C-u 1 M-x font-lock-mode
>
> Minibuffer says font lock mode is enabled

@jan: The test that hi-lock uses internally is actually

  (and font-lock-mode (font-lock-specified-p major-mode))

so you need an implemented font-locking in your buffer.  I guess this is
intentional and has its reasons.  But yes, it is surprising.

@Eli: the docstring of `hi-lock-mode' just says:

"In buffers where Font Lock mode is enabled, patterns are
highlighted using font lock."

That's wrong, I think the docstring should be adapted.  _Or_
hi-lock-mode could query the user whether he still wants to enable
hi-locking using font-lock, with the risk of messing up other
highlighting that doesn't come from font-lock.

Michael.




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

Previous Next


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