Fix ignored-local-variable-values for non-primitive values

* lisp/files.el (hack-local-variables-filter): Fix
`ignored-local-variable-values' for non-primitive values (bug#56957).
This commit is contained in:
Kira Bruneau 2022-08-04 08:26:38 +02:00 committed by Lars Ingebrigtsen
parent 118a911159
commit 3e60f7f3c3

View 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)