From: Artur Malabarba Date: Tue, 30 Jun 2015 14:33:39 +0000 (+0100) Subject: * lisp/isearch.el (isearch-toggle-word): Fix toggle X-Git-Tag: emacs-25.0.90~1604 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=881c4790266c42805ac1b9a5f1bbe13d3dd23478;p=emacs.git * lisp/isearch.el (isearch-toggle-word): Fix toggle --- 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))