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

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

[nongnu] elpa/bind-map 292794739c 71/97: Fix incorrect check of override


From: ELPA Syncer
Subject: [nongnu] elpa/bind-map 292794739c 71/97: Fix incorrect check of override mode in local hook
Date: Thu, 20 Jan 2022 07:59:25 -0500 (EST)

branch: elpa/bind-map
commit 292794739c929e4bb9fdf13f0c5736ad3f0fcbf8
Author: justbur <justin@burkett.cc>
Commit: justbur <justin@burkett.cc>

    Fix incorrect check of override mode in local hook
---
 bind-map.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/bind-map.el b/bind-map.el
index 90361557ef..296c8ad527 100644
--- a/bind-map.el
+++ b/bind-map.el
@@ -130,7 +130,8 @@ be activated.")
   ;; format is (OVERRIDE-MODE STATE KEY DEF)
   (dolist (entry bind-map-evil-local-bindings)
     (let ((map (intern (format "evil-%s-state-local-map" (nth 1 entry)))))
-      (when (and (nth 0 entry)
+      (when (and (boundp (nth 0 entry))
+                 (symbol-value (nth 0 entry))
                  (boundp map)
                  (keymapp (symbol-value map)))
         (define-key (symbol-value map) (nth 2 entry) (nth 3 entry))))))



reply via email to

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