Mercurial > emacs
changeset 45217:4383b69f181b
(Freplace_match): Doc fix.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Fri, 10 May 2002 01:01:30 +0000 |
parents | fe53581ba559 |
children | 4c51a687cf5c |
files | src/search.c |
diffstat | 1 files changed, 6 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/search.c Fri May 10 01:00:29 2002 +0000 +++ b/src/search.c Fri May 10 01:01:30 2002 +0000 @@ -2158,13 +2158,15 @@ DEFUN ("replace-match", Freplace_match, Sreplace_match, 1, 5, 0, doc: /* Replace text matched by last search with NEWTEXT. +Leave point at the end of the replacement text. + If second arg FIXEDCASE is non-nil, do not alter case of replacement text. Otherwise maybe capitalize the whole text, or maybe just word initials, based on the replaced text. If the replaced text has only capital letters and has at least one multiletter word, convert NEWTEXT to all caps. -If the replaced text has at least one word starting with a capital letter, -then capitalize each word in NEWTEXT. +Otherwise if all words are capitalized in the replaced text, +capitalize each word in NEWTEXT. If third arg LITERAL is non-nil, insert NEWTEXT literally. Otherwise treat `\\' as special: @@ -2172,8 +2174,9 @@ `\\N' means substitute what matched the Nth `\\(...\\)'. If Nth parens didn't match, substitute nothing. `\\\\' means insert one `\\'. +Case conversion does not apply to these substitutions. + FIXEDCASE and LITERAL are optional arguments. -Leaves point at end of replacement text. The optional fourth argument STRING can be a string to modify. This is meaningful when the previous match was done against STRING,