[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 58d06af57d: ; * lisp/replace.el (replace-regexp-function): Doc fi

From: Eli Zaretskii
Subject: master 58d06af57d: ; * lisp/replace.el (replace-regexp-function): Doc fix. (Bug#52558)
Date: Wed, 29 Dec 2021 13:25:49 -0500 (EST)

branch: master
commit 58d06af57d5942e87ca5c49ee941b426c76779e7
Author: Eli Zaretskii <eliz@gnu.org>
Commit: Eli Zaretskii <eliz@gnu.org>

    ; * lisp/replace.el (replace-regexp-function): Doc fix.  (Bug#52558)
 lisp/replace.el | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/lisp/replace.el b/lisp/replace.el
index 2e877305c0..70d3ec73f8 100644
--- a/lisp/replace.el
+++ b/lisp/replace.el
@@ -2622,9 +2622,13 @@ It is called with three arguments, as if it were
 (defvar replace-regexp-function nil
-  "Function to convert a search string to a regexp to replace.
-It's bound to `isearch-regexp-function' when searching
-for a string to replace.")
+  "Function to convert the FROM string of query-replace commands to a regexp.
+This is used by `query-replace', `query-replace-regexp', etc. as
+the value of `isearch-regexp-function' when they search for the
+occurences of the string/regexp to be replaced.  This is intended
+to be used when the string to be replaced, as typed by the user,
+is not to be interpreted literally, but instead should be converted
+to a regexp that is actually used for the search.")
 (defun replace-search (search-string limit regexp-flag delimited-flag
                       case-fold &optional backward)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]