emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] master 883438e: * lisp/isearch.el (isearch-define-mode-tog


From: Juri Linkov
Subject: [Emacs-diffs] master 883438e: * lisp/isearch.el (isearch-define-mode-toggle): Ensure isearch-mode is active.
Date: Mon, 5 Aug 2019 16:37:39 -0400 (EDT)

branch: master
commit 883438ef67cb483f5d986651110bbc0578683a82
Author: Juri Linkov <address@hidden>
Commit: Juri Linkov <address@hidden>

    * 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 0972903..30f7fc7 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)



reply via email to

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