replace-regexp-in-string with SUBEXP in 21.5.28 is broken; for example the
example given in the docstring fails.
What should happen according to the example:
(replace-regexp-in-string "\\(foo\\).*\\'" "bar" " foo
foo" nil nil 1)
" bar foo"
In my 21.5.28:
(replace-regexp-in-string "\\(foo\\).*\\'" "bar" " foo
foo" nil nil 1)
" bar"
Perhaps when Ben brought this in from GNU Emacs, he may have failed to notice
that our `replace-match' API differs from GNU's regarding strings vs buffers
and subexp and this is why thing go south. Thoughts?
Attached is an addition to the test suite; untested though and I haven't
touched the test suite earlier so a review is needed.
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://calypso.tux.org/cgi-bin/mailman/listinfo/xemacs-beta