>>>> "Andy" == Andy Piper <andyp(a)bea.com>
writes:
Andy> 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.
Andy> Unlikely since the behavior doesn't show up in 21.1 with the
Andy> same versions of cc-mode.
It's quite possible that without Matt's code you simply don't notice
that 997 of those 998 calls to scan_list are redundant, in any Emacs.
Remember all we're doing here is to _indent one line_. In the case of
the TAB (which causes twice as many scans!!), font-lock should not
change anything---if it does there's a bug! Arguably font-lock (less
likely, cc-mode) is broken. In languages where indentation is not
syntactically significant, there is no good reason for changes in
indentation to cause XEmacs to go charging up and down the buffer
scanning sexps.
--
Institute of Policy and Planning Sciences
http://turnbull.sk.tsukuba.ac.jp
University of Tsukuba Tennodai 1-1-1 Tsukuba 305-8573 JAPAN
Don't ask how you can "do" free software business;
ask what your business can "do for" free software.