]> git.eshelyaron.com Git - emacs.git/commitdiff
; * lisp/files.el (hack-local-variables): Fix thinko.
authorEshel Yaron <me@eshelyaron.com>
Fri, 11 Apr 2025 10:36:40 +0000 (12:36 +0200)
committerEshel Yaron <me@eshelyaron.com>
Fri, 11 Apr 2025 10:36:40 +0000 (12:36 +0200)
lisp/files.el

index 322245ea9224ded120d8fff0f4755637445176fe..b44eeb0c56c9cb280c7af0dfddabe16a635f62e4 100644 (file)
@@ -4241,7 +4241,8 @@ all the specified local variables, but ignores any settings of \"mode:\"."
   ;; variable sections, but there is no reason dir-locals cannot apply
   ;; to them.  The real meaning of inhibit-local-variables-p is "do
   ;; not scan this file for local variables".
-  (let ((enable-local-variables (not inhibit-locals)))
+  (let ((enable-local-variables
+         (and (not inhibit-locals) enable-local-variables)))
     (if (eq handle-mode t)
         ;; We're looking just for the major mode setting.
         (and enable-local-variables