Merge pull request #386 from AjaiKN/symbol-value

Use symbol-value instead of eval
This commit is contained in:
Magnar Sveen 2024-12-01 19:41:18 +01:00 committed by GitHub
commit 46635e7f69
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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)))