# HG changeset patch # User Gerd Moellmann # Date 998576742 0 # Node ID 53166863c34af4e4ff64eccdf175a77a60b97eaf # Parent 34b96e612f4d68a6fbd528fd6d39aa1bdf8abebe (Search and Replace): Add description of START and END parameters to perform-replace. diff -r 34b96e612f4d -r 53166863c34a lispref/searching.texi --- a/lispref/searching.texi Thu Aug 23 14:16:42 2001 +0000 +++ b/lispref/searching.texi Thu Aug 23 14:25:42 2001 +0000 @@ -1050,10 +1050,14 @@ @section Search and Replace @cindex replacement -@defun perform-replace from-string replacements query-flag regexp-flag delimited-flag &optional repeat-count map -This function is the guts of @code{query-replace} and related commands. -It searches for occurrences of @var{from-string} and replaces some or -all of them. If @var{query-flag} is @code{nil}, it replaces all +@defun perform-replace from-string replacements start end query-flag regexp-flag delimited-flag &optional repeat-count map +This function is the guts of @code{query-replace} and related +commands. It searches for occurrences of @var{from-string} in the +text between positions @var{start} and @var{end} and replaces some or +all of them. If @var{start} is @code{nil}, point is used instead, and +the buffer's end is used for @var{end}. + +If @var{query-flag} is @code{nil}, it replaces all occurrences; otherwise, it asks the user what to do about each one. If @var{regexp-flag} is non-@code{nil}, then @var{from-string} is