Subject: bug#6465: Error during redisplay: (error No match 4 in highlight (4 font-lock-warning-face))

From: Stefan Monnier <[email-masked]>
Date: Sun, 28 Nov 2010 12:25:27 -0500

>>>>> "Chong" == Chong Yidong <[email-masked]> writes:

> Dan Nicolaescu <[email-masked]> writes:
>>>> When using C-x v v to check something in, there's a lot of messages
>>>> like this in the *Messages* buffer:
>>>> 
>>>> Error during redisplay: (error No match 4 in highlight (4
>>>> font-lock-warning-face)) [3 times]
>>>> 
>>>> Probably the cause is this change to `log-edit-font-lock-keywords':
>>>> 
>>>> 2010-04-21  Stefan Monnier  <monnier <at> iro.umontreal.ca>
>>>> 
>>>> Make the log-edit comments use RFC822 format throughout.
>>> 
>>> Is this still happening to you?
>> 
>> I can see it on the emacs-23 branch.

Thos things are trivial to solve: add a `lax' argument to the `4'
font-lock rule.

> The final "\\|\\(.*\\)" in log-edit-font-lock-keywords looks bogus (it
> was also the reason for the loop in Bug#6343).  Since Stefan hasn't
> commented on this issue yet, I went ahead and removed that part of the
> regexp.

That's OK as well, it was not an important case,

        Stefan