1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-26 07:33:47 +00:00

* lisp/isearch.el (isearch-define-mode-toggle): Ensure isearch-mode is active.

Call 'isearch-mode' when it's nil.  (Bug#36871)
This commit is contained in:
Juri Linkov 2019-08-05 23:37:32 +03:00
parent 81b34c45c6
commit 883438ef67

View File

@ -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)