aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/isearch.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/isearch.el b/lisp/isearch.el
index 2efa4c7e8ef..c91ccfad27d 100644
--- a/lisp/isearch.el
+++ b/lisp/isearch.el
@@ -1528,7 +1528,9 @@ The command then executes BODY and updates the isearch prompt."
1528 (if docstring (concat "\n" docstring) "")) 1528 (if docstring (concat "\n" docstring) ""))
1529 (interactive) 1529 (interactive)
1530 ,@(when function 1530 ,@(when function
1531 `((setq isearch-regexp-function #',function) 1531 `((setq isearch-regexp-function
1532 (unless (eq isearch-regexp-function #',function)
1533 #',function))
1532 (setq isearch-regexp nil))) 1534 (setq isearch-regexp nil)))
1533 ,@body 1535 ,@body
1534 (setq isearch-success t isearch-adjusted t) 1536 (setq isearch-success t isearch-adjusted t)