Index: emacs/lisp/subr.el diff -c emacs/lisp/subr.el:1.474 emacs/lisp/subr.el:1.475 *** emacs/lisp/subr.el:1.474 Wed Aug 17 14:08:30 2005 --- emacs/lisp/subr.el Sat Aug 20 21:48:51 2005 *************** *** 2167,2175 **** is non-nil, start replacements at that index in STRING. REP is either a string used as the NEWTEXT arg of `replace-match' or a ! function. If it is a function it is applied to each match to generate ! the replacement passed to `replace-match'; the match-data at this ! point are such that match 0 is the function's argument. To replace only the first match (if any), make REGEXP match up to \\' and replace a sub-expression, e.g. --- 2167,2176 ---- is non-nil, start replacements at that index in STRING. REP is either a string used as the NEWTEXT arg of `replace-match' or a ! function. If it is a function, it is called with the actual text of each ! match, and its value is used as the replacement text. When REP is called, ! the match-data are the result of matching REGEXP against a substring ! of STRING. To replace only the first match (if any), make REGEXP match up to \\' and replace a sub-expression, e.g.
_______________________________________________ Emacs-diffs mailing list [email protected] http://lists.gnu.org/mailman/listinfo/emacs-diffs
