Ensure the buffer local value of syntax-propertize-function is set

This caused much headache. This variable really should be
automatically buffer local.
This commit is contained in:
Nathaniel Nicandro 2018-10-06 23:02:49 -05:00
parent 5caf82cf81
commit 4f73d1397e

View file

@ -2365,8 +2365,8 @@ When the kernel restarts, insert a new prompt."
(lambda (state)
(unless (get-text-property
(nth 8 state) 'font-lock-fontified)
(when sff (funcall sff state))))))))
syntax-propertize-function spf))
(when sff (funcall sff state)))))))))
(setq-local syntax-propertize-function spf))
(font-lock-mode)))
(defun jupyter-repl-insert-banner (banner)