Hi, XEmacs!
1. Using an up to date XEmacs and Packages, create the following
Objective C file, class-30.m:
#########################################################################
@interface Foo
(Bar)
<X, Y, Z>
@end
@interface Foo (Bar)
<X, Y, Z>
@end
#########################################################################
2. Kill the buffer and reload the file freshly.
3. M-: (scan-lists 1 1 -1). This (correctly) returns 17, just after the
"(" on L2.
4. Put point at BOL3 ("<X ,Y, Z>"). Narrow to the first two lines with
M-<, C-x n n.
5. With point at BOL3, (point-max), do M-: (looking-at c-opt-cpp-start).
6. M-: (scan-lists 1 1 -1). This now (buggily) returns 2.
N.B. c-opt-cpp-start is "\\s *#\\s *\\([a-zA-Z0-9]+\\)".
Speculation: the regexp code shares the use of the syntax cache with the
syntax code, and somehow the `looking-at' call has fouled up the syntax
cache for `scan-lists'.
--
Alan Mackenzie (Nuremberg, Germany).
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://lists.xemacs.org/mailman/listinfo/xemacs-beta