]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/files.el (hack-one-local-variable): Allow `add-function` in `eval:`
authorStefan Monnier <monnier@iro.umontreal.ca>
Sun, 27 Jun 2021 22:01:13 +0000 (18:01 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Sun, 27 Jun 2021 22:01:13 +0000 (18:01 -0400)
Fixes: bug#49163
lisp/files.el

index 5d2fe0a77be2f5e70b9f710bcacbce09544cc614..04db0faffd0d5b9c3cd2bacdc01011e48c8610ab 100644 (file)
@@ -4041,7 +4041,7 @@ already the major mode."
     ('eval
      (pcase val
        (`(add-hook ',hook . ,_) (hack-one-local-variable--obsolete hook)))
-     (save-excursion (eval val)))
+     (save-excursion (eval val t)))
     (_
      (hack-one-local-variable--obsolete var)
      ;; Make sure the string has no text properties.