diff --git a/lisp/isearch.el b/lisp/isearch.el index dddd8ca473..8b35b5b517 100644 --- a/lisp/isearch.el +++ b/lisp/isearch.el @@ -1971,6 +1971,7 @@ isearch-define-mode-toggle ,(format "Toggle %s searching on or off.%s" mode (if docstring (concat "\n" docstring) "")) (interactive) + (unless isearch-mode (isearch-mode t)) ,@(when function `((setq isearch-regexp-function (unless (eq isearch-regexp-function #',function)