From 9060fbd3b5cd3ccae5ef88a0204332b75af94532 Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Sun, 27 Jun 2021 18:01:13 -0400 Subject: [PATCH] * lisp/files.el (hack-one-local-variable): Allow `add-function` in `eval:` Fixes: bug#49163 --- lisp/files.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/files.el b/lisp/files.el index 5d2fe0a77be..04db0faffd0 100644 --- a/lisp/files.el +++ b/lisp/files.el @@ -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. -- 2.39.2