[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/multiple-cursors e315120117 1/2: Use symbol-value instead
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/multiple-cursors e315120117 1/2: Use symbol-value instead of eval |
Date: |
Sun, 1 Dec 2024 16:00:27 -0500 (EST) |
branch: elpa/multiple-cursors
commit e315120117dfb507a95634a7c4f308e54481441d
Author: Ajai Nelson <22969541+AjaiKN@users.noreply.github.com>
Commit: Ajai Nelson <22969541+AjaiKN@users.noreply.github.com>
Use symbol-value instead of eval
The Emacs Lisp manual says, "to get the value of a variable, while eval
works, symbol-value is preferable".
---
multiple-cursors-core.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/multiple-cursors-core.el b/multiple-cursors-core.el
index ead1ed3b8b..2ce92ac18d 100644
--- a/multiple-cursors-core.el
+++ b/multiple-cursors-core.el
@@ -743,7 +743,7 @@ They are temporarily disabled when multiple-cursors are
active.")
(defun mc/temporarily-disable-minor-mode (mode)
"If MODE is available and turned on, remember that and turn it off."
- (when (and (boundp mode) (eval mode))
+ (when (and (boundp mode) (symbol-value mode))
(add-to-list 'mc/temporarily-disabled-minor-modes mode)
(funcall mode -1)))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [nongnu] elpa/multiple-cursors e315120117 1/2: Use symbol-value instead of eval,
ELPA Syncer <=