diff options
| author | Richard M. Stallman | 2002-05-10 01:01:30 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2002-05-10 01:01:30 +0000 |
| commit | 4dd0c271726eeac8d20decbd9f2dfe23878315cf (patch) | |
| tree | 2ca6be5adbdb03ec8596345adf5c00d73407194e | |
| parent | 154b2b1008fac7c78938b6d32008e1c97ed0d094 (diff) | |
| download | emacs-4dd0c271726eeac8d20decbd9f2dfe23878315cf.tar.gz emacs-4dd0c271726eeac8d20decbd9f2dfe23878315cf.zip | |
(Freplace_match): Doc fix.
| -rw-r--r-- | src/search.c | 9 |
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 | ||
| 2159 | DEFUN ("replace-match", Freplace_match, Sreplace_match, 1, 5, 0, | 2159 | DEFUN ("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. |
| 2161 | Leave point at the end of the replacement text. | ||
| 2162 | |||
| 2161 | If second arg FIXEDCASE is non-nil, do not alter case of replacement text. | 2163 | If second arg FIXEDCASE is non-nil, do not alter case of replacement text. |
| 2162 | Otherwise maybe capitalize the whole text, or maybe just word initials, | 2164 | Otherwise maybe capitalize the whole text, or maybe just word initials, |
| 2163 | based on the replaced text. | 2165 | based on the replaced text. |
| 2164 | If the replaced text has only capital letters | 2166 | If the replaced text has only capital letters |
| 2165 | and has at least one multiletter word, convert NEWTEXT to all caps. | 2167 | and has at least one multiletter word, convert NEWTEXT to all caps. |
| 2166 | If the replaced text has at least one word starting with a capital letter, | 2168 | Otherwise if all words are capitalized in the replaced text, |
| 2167 | then capitalize each word in NEWTEXT. | 2169 | capitalize each word in NEWTEXT. |
| 2168 | 2170 | ||
| 2169 | If third arg LITERAL is non-nil, insert NEWTEXT literally. | 2171 | If third arg LITERAL is non-nil, insert NEWTEXT literally. |
| 2170 | Otherwise treat `\\' as special: | 2172 | Otherwise 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 `\\'. |
| 2177 | Case conversion does not apply to these substitutions. | ||
| 2178 | |||
| 2175 | FIXEDCASE and LITERAL are optional arguments. | 2179 | FIXEDCASE and LITERAL are optional arguments. |
| 2176 | Leaves point at end of replacement text. | ||
| 2177 | 2180 | ||
| 2178 | The optional fourth argument STRING can be a string to modify. | 2181 | The optional fourth argument STRING can be a string to modify. |
| 2179 | This is meaningful when the previous match was done against STRING, | 2182 | This is meaningful when the previous match was done against STRING, |