Subject: bug#36871: 26.1; I-search-toggle-csse-fold

From: Juri Linkov <[email-masked]>
Date: Sun, 04 Aug 2019 23:46:51 +0300

> Shouldn't toggling commands activate isearch-mode?

I meant the same guarding like in isearch-yank-kill:

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)