mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
lang/emacs-lisp: don't use risky-local-variable-p
It's hardcoded to return t for symbols that end in any of '-command', '-frame-alist', '-function', '-functions', '-hook', '-hooks', '-form', '-forms', '-map', '-map-alist', '-mode-alist', '-program', or '-predicate' -- which I think is excessive next to a safety check. I'll trust that: if the user marks X as safe, and it isn't *explicitly* marked risky, and it destroys the universe, then it's their fault, not mine, not Emacs'.
This commit is contained in:
@ -44,7 +44,7 @@ employed so that flycheck still does *some* helpful linting.")
|
|||||||
(message "Ignoring unsafe form in file local variable: %S" val)))
|
(message "Ignoring unsafe form in file local variable: %S" val)))
|
||||||
((not (safe-local-variable-p var val))
|
((not (safe-local-variable-p var val))
|
||||||
(message "Ignoring unsafe file local variable: %S" var))
|
(message "Ignoring unsafe file local variable: %S" var))
|
||||||
((risky-local-variable-p var val)
|
((get sym 'risky-local-variable)
|
||||||
(message "Ignoring risky file local variable: %S" var))))))
|
(message "Ignoring risky file local variable: %S" var))))))
|
||||||
:config
|
:config
|
||||||
(set-repl-handler! '(emacs-lisp-mode lisp-interaction-mode) #'+emacs-lisp/open-repl)
|
(set-repl-handler! '(emacs-lisp-mode lisp-interaction-mode) #'+emacs-lisp/open-repl)
|
||||||
|
Reference in New Issue
Block a user