Take file-local variables into account in elint-file (bug#69076)
* lisp/emacs-lisp/elint.el (elint-file): Use hack-local-variables.
This commit is contained in:
parent
fa74c7f88a
commit
decfdd4f1a
1 changed files with 1 additions and 0 deletions
|
@ -266,6 +266,7 @@ This environment can be passed to `macroexpand'."
|
|||
(insert-file-contents file)
|
||||
(let ((buffer-file-name file)
|
||||
(max-lisp-eval-depth (max 1000 max-lisp-eval-depth)))
|
||||
(hack-local-variables)
|
||||
(with-syntax-table emacs-lisp-mode-syntax-table
|
||||
(mapc 'elint-top-form (elint-update-env)))))
|
||||
(elint-set-mode-line)
|
||||
|
|
Loading…
Add table
Reference in a new issue