branch: elpa/evil-lisp-state
commit 9d07f9efad1fa5b60fe6693b0aa03d2fd0e62dfa
Author: syl20bnr <[email protected]>
Commit: syl20bnr <[email protected]>

    Reapply fix of confusion message when toggling state
---
 evil-lisp-state.el | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/evil-lisp-state.el b/evil-lisp-state.el
index bc2540085f..0fc9af971b 100644
--- a/evil-lisp-state.el
+++ b/evil-lisp-state.el
@@ -259,11 +259,12 @@ If `evil-lisp-state-global' is non nil then this variable 
has no effect."
 (defun lisp-state-toggle-lisp-state ()
   "Toggle the lisp state."
   (interactive)
-  (message "state: %s" evil-state)
   (if (eq 'lisp evil-state)
-      (evil-normal-state)
+      (progn
+        (message "state: lisp -> normal")
+        (evil-normal-state))
+    (message "state: %s -> lisp" evil-state)
     (evil-lisp-state)))
-
 (defun lisp-state-wrap (&optional arg)
   "Wrap a symbol with parenthesis."
   (interactive "P")

Reply via email to