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".
This commit is contained in:
Ajai Nelson
2024-11-27 08:40:16 -05:00
parent c870c18462
commit e315120117

View File

@@ -743,7 +743,7 @@ They are temporarily disabled when multiple-cursors are active.")
(defun mc/temporarily-disable-minor-mode (mode) (defun mc/temporarily-disable-minor-mode (mode)
"If MODE is available and turned on, remember that and turn it off." "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) (add-to-list 'mc/temporarily-disabled-minor-modes mode)
(funcall mode -1))) (funcall mode -1)))