]> git.eshelyaron.com Git - emacs.git/commitdiff
Take file-local variables into account in elint-file (bug#69076)
authorGerd Möllmann <gerd@gnu.org>
Wed, 14 Feb 2024 07:54:04 +0000 (08:54 +0100)
committerEshel Yaron <me@eshelyaron.com>
Wed, 14 Feb 2024 08:17:24 +0000 (09:17 +0100)
* lisp/emacs-lisp/elint.el (elint-file): Use hack-local-variables.

(cherry picked from commit decfdd4f1a1e3b1539eafdaaf11191e8477f0636)

lisp/emacs-lisp/elint.el

index a8bc4bdd1e0fb7019bce5a6552847982353348b2..27c169cc6573ecd61942a4d414e062380dff9110 100644 (file)
@@ -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)