From da353e8b10ab60cf86f2f5fa2a87d52b3da8b592 Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Tue, 12 Dec 2017 14:43:27 -0500 Subject: [PATCH] * lisp/subr.el (run-mode-hooks): Fix last change --- lisp/subr.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/subr.el b/lisp/subr.el index 8468255ad2f..d6dceb79fa1 100644 --- a/lisp/subr.el +++ b/lisp/subr.el @@ -1877,7 +1877,7 @@ running their FOO-mode-hook." ;; Normal case, just run the hook as before plus any delayed hooks. (setq hooks (nconc (nreverse delayed-mode-hooks) hooks)) (and syntax-propertize-function - (not (buffer-local-p 'parse-sexp-lookup-properties)) + (not (local-variable-p 'parse-sexp-lookup-properties)) ;; `syntax-propertize' sets `parse-sexp-lookup-properties' for us, but ;; in order for the sexp primitives to automatically call ;; `syntax-propertize' we need `parse-sexp-lookup-properties' to be -- 2.39.5