emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master decfdd4f1a1: Take file-local variables into account in elint-file


From: Gerd Moellmann
Subject: master decfdd4f1a1: Take file-local variables into account in elint-file (bug#69076)
Date: Wed, 14 Feb 2024 02:56:09 -0500 (EST)

branch: master
commit decfdd4f1a1e3b1539eafdaaf11191e8477f0636
Author: Gerd Möllmann <gerd@gnu.org>
Commit: Gerd Möllmann <gerd@gnu.org>

    Take file-local variables into account in elint-file (bug#69076)
    
    * lisp/emacs-lisp/elint.el (elint-file): Use hack-local-variables.
---
 lisp/emacs-lisp/elint.el | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lisp/emacs-lisp/elint.el b/lisp/emacs-lisp/elint.el
index a8bc4bdd1e0..27c169cc657 100644
--- a/lisp/emacs-lisp/elint.el
+++ b/lisp/emacs-lisp/elint.el
@@ -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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]