Subject: Re: bug#18948: 24.4; CC mode causes jit-stealth-lock to signal an error

From: Eli Zaretskii <[email-masked]>
Date: Wed, 05 Nov 2014 05:42:14 +0200

> From: Stefan Monnier <[email-masked]>
> Cc: [email-masked]
> Date: Tue, 04 Nov 2014 15:23:17 -0500
> 
> >   Error running timer `jit-lock-stealth-fontify': (args-out-of-range #<buffer buffer.c> 71003 71397)
> 
> Is the error really signaled by jit-lock, or is it just the message that
> comes from jit-lock?

The error is signaled by parse-partial-sexp that is called indirectly
by jit-lock-stealth-fontify, as the backtrace shows.

> At least, the backtraces you show all have an appropriate
> save-restriction, so the jit-lock code itself should never see the
> narrowing.

It doesn't.  It isn't a problem with jit-stealth, this is a problem
with CC mode.