]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/subr.el (run-mode-hooks): Fix last change
authorStefan Monnier <monnier@iro.umontreal.ca>
Tue, 12 Dec 2017 19:43:27 +0000 (14:43 -0500)
committerStefan Monnier <monnier@iro.umontreal.ca>
Tue, 12 Dec 2017 19:43:27 +0000 (14:43 -0500)
lisp/subr.el

index 8468255ad2f02926ffec95c1f37e7084509d4730..d6dceb79fa1e6ee5a1be9a3248bf9c8d5b212665 100644 (file)
@@ -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