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

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

[nongnu] elpa/bind-map a8a2937ecc 38/97: Minor tweak to previous commit


From: ELPA Syncer
Subject: [nongnu] elpa/bind-map a8a2937ecc 38/97: Minor tweak to previous commit
Date: Thu, 20 Jan 2022 07:59:14 -0500 (EST)

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

    Minor tweak to previous commit
---
 bind-map.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bind-map.el b/bind-map.el
index c9a27bfe7f..6b156a2d2b 100644
--- a/bind-map.el
+++ b/bind-map.el
@@ -255,7 +255,7 @@ to place in a local state map.")
 (defun bind-map-local-mode-hook ()
   (dolist (entry bind-map-local-bindings)
     (let ((map (intern (format "evil-%s-state-local-map" (car entry)))))
-      (when (symbol-value map)
+      (when (and (boundp map) (keymapp (symbol-value map)))
         (define-key (symbol-value map) (cadr entry) (caddr entry))))))
 (add-hook 'evil-local-mode-hook 'bind-map-local-mode-hook)
 



reply via email to

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