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

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

[nongnu] elpa/bind-map 3f6eba7b5b 56/97: Make sure active-var is bound b


From: ELPA Syncer
Subject: [nongnu] elpa/bind-map 3f6eba7b5b 56/97: Make sure active-var is bound before setting
Date: Thu, 20 Jan 2022 07:59:21 -0500 (EST)

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

    Make sure active-var is bound before setting
    
    Should not be necessary, but doing this to catch weird errors
---
 bind-map.el | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/bind-map.el b/bind-map.el
index f9418ce63f..5ffbcd2119 100644
--- a/bind-map.el
+++ b/bind-map.el
@@ -146,8 +146,10 @@ when the major mode is an element of the cdr. See
   "Called to activate major mode maps in a buffer."
   ;; format is (ACTIVATE-VAR MAJOR-MODES-LIST)
   (dolist (entry bind-map-major-modes-alist)
-    (setf (symbol-value (car entry))
-          (not (null (member major-mode (cdr entry)))))))
+    (if (boundp (car entry))
+      (setf (symbol-value (car entry))
+            (not (null (member major-mode (cdr entry)))))
+      (message "bind-map: %s is void in change major mode hook" (car entry)))))
 (add-hook 'change-major-mode-after-body-hook
           'bind-map-change-major-mode-after-body-hook)
 



reply via email to

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