aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman2001-10-01 06:07:56 +0000
committerRichard M. Stallman2001-10-01 06:07:56 +0000
commitb615868c8eca23b4382abd3aca2b34a917589d84 (patch)
treeba10e8a512867df71b6e5249e03ee335ce524658 /src
parentc1f29759823c03a3cf5a03ee6eb31a909b03cfa9 (diff)
downloademacs-b615868c8eca23b4382abd3aca2b34a917589d84.tar.gz
emacs-b615868c8eca23b4382abd3aca2b34a917589d84.zip
(Freplace_match): Doc fix.
Diffstat (limited to 'src')
-rw-r--r--src/search.c16
1 files changed, 11 insertions, 5 deletions
diff --git a/src/search.c b/src/search.c
index ff70bb3d366..a93776d3f7d 100644
--- a/src/search.c
+++ b/src/search.c
@@ -2183,12 +2183,18 @@ FIXEDCASE and LITERAL are optional arguments.\n\
2183Leaves point at end of replacement text.\n\ 2183Leaves point at end of replacement text.\n\
2184\n\ 2184\n\
2185The optional fourth argument STRING can be a string to modify.\n\ 2185The optional fourth argument STRING can be a string to modify.\n\
2186In that case, this function creates and returns a new string\n\ 2186This is meaningful when the previous match was done against STRING,\n\
2187which is made by replacing the part of STRING that was matched.\n\ 2187using `string-match'. When used this way, `replace-match'\n\
2188creates and returns a new string made by copying STRING and replacing\n\
2189the part of STRING that was matched.\n\
2188\n\ 2190\n\
2189The optional fifth argument SUBEXP specifies a subexpression of the match.\n\ 2191The optional fifth argument SUBEXP specifies a subexpression;\n\
2190It says to replace just that subexpression instead of the whole match.\n\ 2192it says to replace just that subexpression with NEWTEXT,\n\
2191This is useful only after a regular expression search or match\n\ 2193rather than replacing the entire matched text.\n\
2194This 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\
2196NEWTEXT in place of subexp B.\n\
2197This is useful only after a regular expression search or match,\n\
2192since only regular expressions have distinguished subexpressions.") 2198since 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;