Reiner Steib <reinersteib+gmane(a)imap.cc> writes:
On Thu, Oct 28 2004, Stephen J. Turnbull wrote:
> There's a shy group in there. Shy group support in 21.4 was
> disastrously buggy; the main bug I know about is fixed in 21.4 CVS and
> the fix will be in the release of 21.4.16.
BTW, I still think that the inf-loop of XEmacs in
(replace-in-string "xe" "\\(x\\)?" "")
as reported in December 2003 (see
should be fixed. The bug (I don't agree to your evaluation that
XEmacs is displaying correct behavior) is still present in 21.4.15.
And in 21.4.18. In MH-E code that had been working in GNU Emacs for
years, an XEmacs user reported an infinite loop stemming from the
(replace-in-string "foo" "/*$" "/")
The regexp ensures that there is one, and only one, trailing slash.
Works in Perl, vi, GNU Emacs. That it doesn't in XEmacs is a bug. And
a nasty one at that--I don't think replace-in-string should ever let a
lowly regexp put it into a loop.
M-: (replace-regexp-in-string "/*$" "/" "foo") -->
echo foo | vi -:
:s/\/*$/\//g --> foo/
echo foo | perl -p -e 's|/*$|/|' --> foo/
Bill Wohler <wohler(a)newt.com> http://www.newt.com/wohler/
Maintainer of comp.mail.mh FAQ and MH-E. Vote Libertarian!
If you're passed on the right, you're in the wrong lane.