diff options
| author | Gerd Moellmann | 2001-08-23 14:25:42 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2001-08-23 14:25:42 +0000 |
| commit | 3da17c12e807b50f183a5e3ef33c40274220eda0 (patch) | |
| tree | 573d62cdbc0cf224971f4f3cdc1f178f7f9949d5 | |
| parent | 59ecf80b928a41bba35369103846893a92055217 (diff) | |
| download | emacs-3da17c12e807b50f183a5e3ef33c40274220eda0.tar.gz emacs-3da17c12e807b50f183a5e3ef33c40274220eda0.zip | |
(Search and Replace): Add description of
START and END parameters to perform-replace.
| -rw-r--r-- | lispref/searching.texi | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/lispref/searching.texi b/lispref/searching.texi index 63e4611a6e8..4f0177592f5 100644 --- a/lispref/searching.texi +++ b/lispref/searching.texi | |||
| @@ -1050,10 +1050,14 @@ A positive number means to include that many lines both before and after. | |||
| 1050 | @section Search and Replace | 1050 | @section Search and Replace |
| 1051 | @cindex replacement | 1051 | @cindex replacement |
| 1052 | 1052 | ||
| 1053 | @defun perform-replace from-string replacements query-flag regexp-flag delimited-flag &optional repeat-count map | 1053 | @defun perform-replace from-string replacements start end query-flag regexp-flag delimited-flag &optional repeat-count map |
| 1054 | This function is the guts of @code{query-replace} and related commands. | 1054 | This function is the guts of @code{query-replace} and related |
| 1055 | It searches for occurrences of @var{from-string} and replaces some or | 1055 | commands. It searches for occurrences of @var{from-string} in the |
| 1056 | all of them. If @var{query-flag} is @code{nil}, it replaces all | 1056 | text between positions @var{start} and @var{end} and replaces some or |
| 1057 | all of them. If @var{start} is @code{nil}, point is used instead, and | ||
| 1058 | the buffer's end is used for @var{end}. | ||
| 1059 | |||
| 1060 | If @var{query-flag} is @code{nil}, it replaces all | ||
| 1057 | occurrences; otherwise, it asks the user what to do about each one. | 1061 | occurrences; otherwise, it asks the user what to do about each one. |
| 1058 | 1062 | ||
| 1059 | If @var{regexp-flag} is non-@code{nil}, then @var{from-string} is | 1063 | If @var{regexp-flag} is non-@code{nil}, then @var{from-string} is |