aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2002-05-10 01:01:30 +0000
committerRichard M. Stallman2002-05-10 01:01:30 +0000
commit4dd0c271726eeac8d20decbd9f2dfe23878315cf (patch)
tree2ca6be5adbdb03ec8596345adf5c00d73407194e
parent154b2b1008fac7c78938b6d32008e1c97ed0d094 (diff)
downloademacs-4dd0c271726eeac8d20decbd9f2dfe23878315cf.tar.gz
emacs-4dd0c271726eeac8d20decbd9f2dfe23878315cf.zip
(Freplace_match): Doc fix.
-rw-r--r--src/search.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/search.c b/src/search.c
index 722af7afa43..d4d97726375 100644
--- a/src/search.c
+++ b/src/search.c
@@ -2158,13 +2158,15 @@ and `replace-match'. */)
2158 2158
2159DEFUN ("replace-match", Freplace_match, Sreplace_match, 1, 5, 0, 2159DEFUN ("replace-match", Freplace_match, Sreplace_match, 1, 5, 0,
2160 doc: /* Replace text matched by last search with NEWTEXT. 2160 doc: /* Replace text matched by last search with NEWTEXT.
2161Leave point at the end of the replacement text.
2162
2161If second arg FIXEDCASE is non-nil, do not alter case of replacement text. 2163If second arg FIXEDCASE is non-nil, do not alter case of replacement text.
2162Otherwise maybe capitalize the whole text, or maybe just word initials, 2164Otherwise maybe capitalize the whole text, or maybe just word initials,
2163based on the replaced text. 2165based on the replaced text.
2164If the replaced text has only capital letters 2166If the replaced text has only capital letters
2165and has at least one multiletter word, convert NEWTEXT to all caps. 2167and has at least one multiletter word, convert NEWTEXT to all caps.
2166If the replaced text has at least one word starting with a capital letter, 2168Otherwise if all words are capitalized in the replaced text,
2167then capitalize each word in NEWTEXT. 2169capitalize each word in NEWTEXT.
2168 2170
2169If third arg LITERAL is non-nil, insert NEWTEXT literally. 2171If third arg LITERAL is non-nil, insert NEWTEXT literally.
2170Otherwise treat `\\' as special: 2172Otherwise treat `\\' as special:
@@ -2172,8 +2174,9 @@ Otherwise treat `\\' as special:
2172 `\\N' means substitute what matched the Nth `\\(...\\)'. 2174 `\\N' means substitute what matched the Nth `\\(...\\)'.
2173 If Nth parens didn't match, substitute nothing. 2175 If Nth parens didn't match, substitute nothing.
2174 `\\\\' means insert one `\\'. 2176 `\\\\' means insert one `\\'.
2177Case conversion does not apply to these substitutions.
2178
2175FIXEDCASE and LITERAL are optional arguments. 2179FIXEDCASE and LITERAL are optional arguments.
2176Leaves point at end of replacement text.
2177 2180
2178The optional fourth argument STRING can be a string to modify. 2181The optional fourth argument STRING can be a string to modify.
2179This is meaningful when the previous match was done against STRING, 2182This is meaningful when the previous match was done against STRING,