]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix ignored-local-variable-values for non-primitive values
authorKira Bruneau <kira.bruneau@gmail.com>
Thu, 4 Aug 2022 06:26:38 +0000 (08:26 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Thu, 4 Aug 2022 06:26:38 +0000 (08:26 +0200)
* lisp/files.el (hack-local-variables-filter): Fix
`ignored-local-variable-values' for non-primitive values (bug#56957).

lisp/files.el

index 5df196619363e05534175806dbc02a50f654f79e..e258bf7bbedb1bbd393b087bad072f10a0047ee3 100644 (file)
@@ -3848,10 +3848,8 @@ DIR-NAME is the name of the associated directory.  Otherwise it is nil."
        (cond ((memq var ignored-local-variables)
               ;; Ignore any variable in `ignored-local-variables'.
               nil)
-              ((seq-some (lambda (elem)
-                           (and (eq (car elem) var)
-                                (eq (cdr elem) val)))
-                         ignored-local-variable-values)
+              ;; Ignore variables with the specified values.
+              ((member elt ignored-local-variable-values)
                nil)
              ;; Obey `enable-local-eval'.
              ((eq var 'eval)