From 881c4790266c42805ac1b9a5f1bbe13d3dd23478 Mon Sep 17 00:00:00 2001 From: Artur Malabarba Date: Tue, 30 Jun 2015 15:33:39 +0100 Subject: [PATCH] * lisp/isearch.el (isearch-toggle-word): Fix toggle --- lisp/isearch.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/isearch.el b/lisp/isearch.el index 62899ab8298..a103c5ab59b 100644 --- a/lisp/isearch.el +++ b/lisp/isearch.el @@ -1500,7 +1500,7 @@ Use `isearch-exit' to quit without signaling." "Toggle word searching on or off." ;; The status stack is left unchanged. (interactive) - (setq isearch-word (not isearch-word)) + (setq isearch-word (if (eq isearch-word t) nil t)) (if isearch-word (setq isearch-regexp nil)) (setq isearch-success t isearch-adjusted t) (isearch-update)) -- 2.39.2