]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/isearch.el (isearch-define-mode-toggle): Ensure isearch-mode is active.
authorJuri Linkov <juri@linkov.net>
Mon, 5 Aug 2019 20:37:32 +0000 (23:37 +0300)
committerJuri Linkov <juri@linkov.net>
Mon, 5 Aug 2019 20:37:32 +0000 (23:37 +0300)
Call 'isearch-mode' when it's nil.  (Bug#36871)

lisp/isearch.el

index 09729034d748171f87eb58627d2d6644e5773a68..30f7fc7254cb63ac818d21ba04075bfc9b969ce3 100644 (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)