Thanks for the report.
>>>> "Martin" == Martin Stjernholm
<mast(a)lysator.liu.se> writes:
Martin> There seems to be a case where stale values are returned
Martin> by match-beginning, match-end and match-string. [...]
Martin> I've verified this in XEmacs 21.4 (patch 6).
Also in 21.4.9. Could someone check in 21.5?
I don't have time to work on it further today, but the match functions
expect the start position of the nth match to be < 0 if the pattern
contains < n subexpressions. We don't seem to have any code to ensure
that the start array is correctly initialized.
Initialization could be done in search.c compile_pattern, but I don't
know if this is the "right" place for it yet.
--
Institute of Policy and Planning Sciences
http://turnbull.sk.tsukuba.ac.jp
University of Tsukuba Tennodai 1-1-1 Tsukuba 305-8573 JAPAN
My nostalgia for Icon makes me forget about any of the bad things. I don't
have much nostalgia for Perl, so its faults I remember. Scott Gilbert c.l.py