comparison lispref/searching.texi @ 47435:9b2bd1816871

(Search and Replace): Fix arg order for perform-replace.
author Richard M. Stallman <rms@gnu.org>
date Thu, 12 Sep 2002 03:32:02 +0000
parents 441493d3bba0
children bfdd0deae843
comparison
equal deleted inserted replaced
47434:3891c4b6162f 47435:9b2bd1816871
1058 1058
1059 @node Search and Replace 1059 @node Search and Replace
1060 @section Search and Replace 1060 @section Search and Replace
1061 @cindex replacement 1061 @cindex replacement
1062 1062
1063 @defun perform-replace from-string replacements start end query-flag regexp-flag delimited-flag &optional repeat-count map 1063 @defun perform-replace from-string replacements query-flag regexp-flag delimited-flag &optional repeat-count map start end
1064 This function is the guts of @code{query-replace} and related 1064 This function is the guts of @code{query-replace} and related
1065 commands. It searches for occurrences of @var{from-string} in the 1065 commands. It searches for occurrences of @var{from-string} in the
1066 text between positions @var{start} and @var{end} and replaces some or 1066 text between positions @var{start} and @var{end} and replaces some or
1067 all of them. If @var{start} is @code{nil}, point is used instead, and 1067 all of them. If @var{start} is @code{nil} (or omitted), point is used
1068 the buffer's end is used for @var{end}. 1068 instead, and the buffer's end is used for @var{end}.
1069 1069
1070 If @var{query-flag} is @code{nil}, it replaces all 1070 If @var{query-flag} is @code{nil}, it replaces all
1071 occurrences; otherwise, it asks the user what to do about each one. 1071 occurrences; otherwise, it asks the user what to do about each one.
1072 1072
1073 If @var{regexp-flag} is non-@code{nil}, then @var{from-string} is 1073 If @var{regexp-flag} is non-@code{nil}, then @var{from-string} is