From: Juri Linkov Date: Mon, 5 Aug 2019 20:37:32 +0000 (+0300) Subject: * lisp/isearch.el (isearch-define-mode-toggle): Ensure isearch-mode is active. X-Git-Tag: emacs-27.0.90~1694 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=883438ef67cb483f5d986651110bbc0578683a82;p=emacs.git * lisp/isearch.el (isearch-define-mode-toggle): Ensure isearch-mode is active. Call 'isearch-mode' when it's nil. (Bug#36871) --- diff --git a/lisp/isearch.el b/lisp/isearch.el index 09729034d74..30f7fc7254c 100644 --- a/lisp/isearch.el +++ b/lisp/isearch.el @@ -1971,6 +1971,7 @@ The command then executes BODY and updates the isearch prompt." ,(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)