From 0a2ed4d34604cde3521f95ebf29da6ff2c4560f2 Mon Sep 17 00:00:00 2001 From: Wetlize Date: Thu, 6 May 2021 13:04:15 +0300 Subject: [PATCH] lang/emacs-lisp: Replace sym with var in +emacs-lisp-log-unsafe-local-variables-a Otherwise it will make Emacs to error with (void-variable sym) error when checking the variable. --- modules/lang/emacs-lisp/config.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/lang/emacs-lisp/config.el b/modules/lang/emacs-lisp/config.el index fa3523619..722c6a623 100644 --- a/modules/lang/emacs-lisp/config.el +++ b/modules/lang/emacs-lisp/config.el @@ -44,7 +44,7 @@ employed so that flycheck still does *some* helpful linting.") (message "Ignoring unsafe form in file local variable: %S" val))) ((not (safe-local-variable-p var val)) (message "Ignoring unsafe file local variable: %S" var)) - ((get sym 'risky-local-variable) + ((get var 'risky-local-variable) (message "Ignoring risky file local variable: %S" var)))))) :config (set-repl-handler! '(emacs-lisp-mode lisp-interaction-mode) #'+emacs-lisp/open-repl)