1060 |
@section Search and Replace |
@section Search and Replace |
1061 |
@cindex replacement |
@cindex replacement |
1062 |
|
|
1063 |
@defun perform-replace from-string replacements start end query-flag regexp-flag delimited-flag &optional repeat-count map |
@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 |
This function is the guts of @code{query-replace} and related |
1065 |
commands. It searches for occurrences of @var{from-string} in the |
commands. It searches for occurrences of @var{from-string} in the |
1066 |
text between positions @var{start} and @var{end} and replaces some or |
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 |
all of them. If @var{start} is @code{nil} (or omitted), point is used |
1068 |
the buffer's end is used for @var{end}. |
instead, and the buffer's end is used for @var{end}. |
1069 |
|
|
1070 |
If @var{query-flag} is @code{nil}, it replaces all |
If @var{query-flag} is @code{nil}, it replaces all |
1071 |
occurrences; otherwise, it asks the user what to do about each one. |
occurrences; otherwise, it asks the user what to do about each one. |