1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 10:30:25 -08:00

* lisp/subr.el (run-mode-hooks): Fix last change

This commit is contained in:
Stefan Monnier 2017-12-12 14:43:27 -05:00
parent 4590f1d768
commit da353e8b10

View 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