From 4dd0c271726eeac8d20decbd9f2dfe23878315cf Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Fri, 10 May 2002 01:01:30 +0000 Subject: [PATCH] (Freplace_match): Doc fix. --- src/search.c | 9 ++++++--- 1 file 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'. */) 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 @@ Otherwise treat `\\' as special: `\\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, -- 2.39.5