comparison src/search.c @ 39510:65f4f2f7d289

(Freplace_match): Doc fix.
author Richard M. Stallman <rms@gnu.org>
date Mon, 01 Oct 2001 06:07:56 +0000
parents b21317213c81
children 3195d967e954
comparison
equal deleted inserted replaced
39509:840f0da1a020 39510:65f4f2f7d289
2181 `\\\\' means insert one `\\'.\n\ 2181 `\\\\' means insert one `\\'.\n\
2182 FIXEDCASE and LITERAL are optional arguments.\n\ 2182 FIXEDCASE and LITERAL are optional arguments.\n\
2183 Leaves point at end of replacement text.\n\ 2183 Leaves point at end of replacement text.\n\
2184 \n\ 2184 \n\
2185 The optional fourth argument STRING can be a string to modify.\n\ 2185 The optional fourth argument STRING can be a string to modify.\n\
2186 In that case, this function creates and returns a new string\n\ 2186 This is meaningful when the previous match was done against STRING,\n\
2187 which is made by replacing the part of STRING that was matched.\n\ 2187 using `string-match'. When used this way, `replace-match'\n\
2188 creates and returns a new string made by copying STRING and replacing\n\
2189 the part of STRING that was matched.\n\
2188 \n\ 2190 \n\
2189 The optional fifth argument SUBEXP specifies a subexpression of the match.\n\ 2191 The optional fifth argument SUBEXP specifies a subexpression;\n\
2190 It says to replace just that subexpression instead of the whole match.\n\ 2192 it says to replace just that subexpression with NEWTEXT,\n\
2191 This is useful only after a regular expression search or match\n\ 2193 rather than replacing the entire matched text.\n\
2194 This is, in a vague sense, the inverse of using `\\N' in NEWTEXT;\n\
2195 `\\N' copies subexp N into NEWTEXT, but using N as SUBEXP puts\n\
2196 NEWTEXT in place of subexp B.\n\
2197 This is useful only after a regular expression search or match,\n\
2192 since only regular expressions have distinguished subexpressions.") 2198 since only regular expressions have distinguished subexpressions.")
2193 (newtext, fixedcase, literal, string, subexp) 2199 (newtext, fixedcase, literal, string, subexp)
2194 Lisp_Object newtext, fixedcase, literal, string, subexp; 2200 Lisp_Object newtext, fixedcase, literal, string, subexp;
2195 { 2201 {
2196 enum { nochange, all_caps, cap_initial } case_action; 2202 enum { nochange, all_caps, cap_initial } case_action;