Stephen J. Turnbull wrote:
>>>>>"Ben" == Ben Wing <ben(a)xemacs.org>
writes:
>>>>>
>>>>>
Ben> bug. but a bit tricky to figure out how to avoid.
I haven't looked at the implementation of replace-in-string recently,
but the symptom suggests a flag for whether any replacements have
occurred. If so, you can't match the beginning of the string.
Do we have a regexp flag for that? If not, can we add XEmacs-specific
flags to the regexp API?
i don't think this is a good general solution. we could still have
problems with, e.g., a match that matches the text just replaced. in
general, the implementation of replace-in-string needs to find all
matches first, then make all subs at once.