emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[nongnu] elpa/evil-iedit-state c6ed1ef101 29/32: Disable AHS mode when e


From: ELPA Syncer
Subject: [nongnu] elpa/evil-iedit-state c6ed1ef101 29/32: Disable AHS mode when exiting evil-iedit-mode
Date: Mon, 12 Dec 2022 20:59:27 -0500 (EST)

branch: elpa/evil-iedit-state
commit c6ed1ef1018fca1bb000981163a5d0a50fe9b282
Author: duianto <otnaiud@gmail.com>
Commit: Sylvain Benner <sylvain.benner@gmail.com>

    Disable AHS mode when exiting evil-iedit-mode
    
    problem
    If `auto-highlight-symbol-mode` (AHS) was enabled before entering 
`evil-iedit-mode`.
    When exiting `evil-iedit-mode`, then the AHS highlight just gets cleared.
    But AHS mode is still enabled.
    
    Trying to enable AHS shows the message:
    >automatic-symbol-highlight disabled.
    
    AHS mode has to be toggled a second time to enable it.
    
    solution
    Disable AHS mode when exiting `evil-iedit-mode`, it also clears the AHS 
highlight.
---
 evil-iedit-state.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/evil-iedit-state.el b/evil-iedit-state.el
index c739f598c0..e9115eae0a 100644
--- a/evil-iedit-state.el
+++ b/evil-iedit-state.el
@@ -57,7 +57,8 @@
 (defun evil-iedit-state/iedit-mode (&optional arg)
   "Start `iedit-mode'."
   (interactive "P")
-  (if (fboundp 'ahs-clear) (ahs-clear))
+  (when (fboundp 'auto-highlight-symbol-mode)
+    (auto-highlight-symbol-mode -1))
   (iedit-mode arg)
   (evil-iedit-state))
 



reply via email to

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