bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Juri Linkov
Subject: bug#36871: 26.1; I-search-toggle-csse-fold
Date: Sun, 04 Aug 2019 23:46:51 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu)

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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]