[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)
- [nongnu] elpa/bind-map d609a7d784 12/97: Add cl-lib requirement, (continued)
- [nongnu] elpa/bind-map d609a7d784 12/97: Add cl-lib requirement, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map 27ed3304d2 19/97: Revert one of the changes in the previous commit, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map 9f88b251f1 14/97: Fix typo, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map 5077cb72cb 39/97: Add :override-minor-modes option for :keys, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map 07eef581ef 15/97: Add URL, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map ce4e8e7f64 21/97: Fix typos in docstrings, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map f46bf57d7f 52/97: Add major-mode test, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map e3fa3cc383 26/97: Fix compiler warning, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map 4489504e47 29/97: Check evil-keys before calling evil-define-*, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map fb234332ff 32/97: Signal error if supplied map is not a keymap, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map 3f6eba7b5b 56/97: Make sure active-var is bound before setting,
ELPA Syncer <=
- [nongnu] elpa/bind-map 99236303f6 84/97: Rename bind-map-for-modes-derived, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map 96802ece2b 76/97: Increment version, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map 4ceb7deb3a 90/97: Remove messages from tests, ELPA Syncer, 2022/01/20
- [nongnu] elpa/bind-map 3b5a27e429 47/97: Tweak docstrings, ELPA Syncer, 2022/01/20