-- Andy Piper <andyp(a)bea.com> spake thusly:
At 02:41 AM 2/7/02 +0900, Stephen J. Turnbull wrote:
> I think there's a pretty good chance there's something broken in
> cc-mode or font-lock here.
Unlikely since the behavior doesn't show up in 21.1 with the same
versions of cc-mode.
Not necessarily. If scan-lists got slower due to the use of
get-text-properties, it's possible that it's now exposing a bug in
cc-mode or font-lock. I don't know that that's the case, since I
haven't really looked at what's going on in-depth.
If it's not the case, however, a reasonable fix might be a buffer-local
'use-syntax-table-properties' variable which defaults to nil, thus only
enabling the extents lookups for modes which use them.
Or perhaps an even better fix would be to improve the performance of
get-text-properties.