mirror of
https://github.com/magnars/multiple-cursors.el.git
synced 2025-10-13 05:03:03 +00:00
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:
parent
c870c18462
commit
e315120117
@ -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)))
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user