From 883438ef67cb483f5d986651110bbc0578683a82 Mon Sep 17 00:00:00 2001 From: Juri Linkov Date: Mon, 5 Aug 2019 23:37:32 +0300 Subject: [PATCH] * lisp/isearch.el (isearch-define-mode-toggle): Ensure isearch-mode is active. Call 'isearch-mode' when it's nil. (Bug#36871) --- lisp/isearch.el | 1 + 1 file changed, 1 insertion(+) 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) -- 2.39.2