GNU bug report logs - #41185
highlight-regexp not working properly for multiline-matching regexps

Previous Next

Package: emacs;

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

Date: Mon, 11 May 2020 11:26:02 UTC

Severity: normal

Full log


View this message in rfc822 format

From: Michael Heerdegen <michael_heerdegen <at> web.de>
To: jan <rtm443x <at> googlemail.com>
Cc: Lars Ingebrigtsen <larsi <at> gnus.org>, 41185 <at> debbugs.gnu.org
Subject: bug#41185: highlight-regexp not working properly for multiline-matching regexps
Date: Wed, 16 Jun 2021 01:37:36 +0200
jan <rtm443x <at> googlemail.com> writes:

> start emacs with -Q, open a new buffer, say 'asdf'

> type in 'silly'
>
> Highlight it; M-s h r silly ret
>
> existing silly gets highligted.
>
> Press return a couple of times then type in 'silly' again, does not
> highlight (see silly_twice_only_one_got_highlighted.PNG)

Highlighting is not updated if overlays need to be used because the
buffer does not use font-lock-mode (see the docstring of
`highlight-regexp').

Were you aware of that fact, or does your experiment fail even for
"supported" buffers?


Regards,

Michael.




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

Previous Next


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