From: Eshel Yaron Date: Fri, 11 Apr 2025 10:36:40 +0000 (+0200) Subject: ; * lisp/files.el (hack-local-variables): Fix thinko. X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=c6bf206405a3222705c729733be73942e807dd0c;p=emacs.git ; * lisp/files.el (hack-local-variables): Fix thinko. --- 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