[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/setup 7a78f66 24/24: Consistently use symbol-value inst
From: |
Stefan Monnier |
Subject: |
[elpa] externals/setup 7a78f66 24/24: Consistently use symbol-value instead of eval |
Date: |
Thu, 25 Mar 2021 13:42:38 -0400 (EDT) |
branch: externals/setup
commit 7a78f66c146e6051c84429676062f681260ab182
Author: Philip K <philipk@posteo.net>
Commit: Philip K <philipk@posteo.net>
Consistently use symbol-value instead of eval
---
setup.el | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/setup.el b/setup.el
index 3b26d78..9ffb1f5 100644
--- a/setup.el
+++ b/setup.el
@@ -275,7 +275,7 @@ the first FEATURE."
(setup-define :bind
(lambda (key command)
- `(define-key (eval setup-map)
+ `(define-key (symbol-value setup-map)
,(if (or (symbolp key) (stringp key))
`(kbd ,key)
key)
@@ -300,9 +300,9 @@ the first FEATURE."
(setup-define :rebind
(lambda (key command)
`(progn
- (dolist (key (where-is-internal ',command (eval setup-map)))
- (define-key (eval setup-map) key nil))
- (define-key (eval setup-map)
+ (dolist (key (where-is-internal ',command (symbol-value setup-map)))
+ (define-key (symbol-value setup-map) key nil))
+ (define-key (symbol-value setup-map)
,(if (or (symbolp key) (stringp key))
`(kbd ,key)
key)
- [elpa] externals/setup 8f586c3 16/24: Fix hide-mode handling for the first element in minor-mode-alist, (continued)
- [elpa] externals/setup 8f586c3 16/24: Fix hide-mode handling for the first element in minor-mode-alist, Stefan Monnier, 2021/03/25
- [elpa] externals/setup 58cb897 09/24: Remove empty lines in docstrings, Stefan Monnier, 2021/03/25
- [elpa] externals/setup 48658fb 20/24: Fix broken markup in README, Stefan Monnier, 2021/03/25
- [elpa] externals/setup 903564b 21/24: Add if-package and if-feature macros, Stefan Monnier, 2021/03/25
- [elpa] externals/setup f3d4d27 11/24: Replace (function-)form with sexp where necessary, Stefan Monnier, 2021/03/25
- [elpa] externals/setup 546c5f2 12/24: Bump version to 0.1.2, Stefan Monnier, 2021/03/25
- [elpa] externals/setup 7cb02ce 19/24: Remove unnecessary unquote in :bind and :rebind, Stefan Monnier, 2021/03/25
- [elpa] externals/setup 4d74aa7 14/24: Don't require extra quoting for :advise, Stefan Monnier, 2021/03/25
- [elpa] externals/setup f3551c0 18/24: Use delq properly in README/Commentary, Stefan Monnier, 2021/03/25
- [elpa] externals/setup 1861d8c 22/24: Handle nil feature in :with-feature, Stefan Monnier, 2021/03/25
- [elpa] externals/setup 7a78f66 24/24: Consistently use symbol-value instead of eval,
Stefan Monnier <=
- [elpa] externals/setup c2a1f64 17/24: Add (remove ...) keyword to :option and :local-set, Stefan Monnier, 2021/03/25