From e315120117dfb507a95634a7c4f308e54481441d Mon Sep 17 00:00:00 2001 From: Ajai Nelson <22969541+AjaiKN@users.noreply.github.com> Date: Wed, 27 Nov 2024 08:40:16 -0500 Subject: [PATCH] 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 ead1ed3..2ce92ac 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)))