From c6bf206405a3222705c729733be73942e807dd0c Mon Sep 17 00:00:00 2001 From: Eshel Yaron Date: Fri, 11 Apr 2025 12:36:40 +0200 Subject: [PATCH] ; * lisp/files.el (hack-local-variables): Fix thinko. --- lisp/files.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/files.el b/lisp/files.el index 322245ea922..b44eeb0c56c 100644 --- a/lisp/files.el +++ b/lisp/files.el @@ -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 -- 2.39.5