branch: elpa/bind-map commit 3f6eba7b5b055bd6e73f6a25f1a04eda09387edc Author: justbur <jus...@burkett.cc> Commit: justbur <jus...@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)