From 8af79702fcdbee4e3151a48c1d194c8b014c3815 Mon Sep 17 00:00:00 2001 From: Dmitry Gutov Date: Tue, 24 May 2016 13:09:32 +0300 Subject: [PATCH] Make js-mode's syntax highlighting work again * lisp/progmodes/js.el (js-mode): Fix the assigned font-lock-defaults value (bug#23603). --- lisp/progmodes/js.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/progmodes/js.el b/lisp/progmodes/js.el index 508195996b6..a35c4a31d06 100644 --- a/lisp/progmodes/js.el +++ b/lisp/progmodes/js.el @@ -3723,7 +3723,7 @@ If one hasn't been set, or if it's stale, prompt for a new one." (setq-local beginning-of-defun-function #'js-beginning-of-defun) (setq-local end-of-defun-function #'js-end-of-defun) (setq-local open-paren-in-column-0-is-defun-start nil) - (setq-local font-lock-defaults '(js--font-lock-keywords)) + (setq-local font-lock-defaults (list js--font-lock-keywords)) (setq-local syntax-propertize-function #'js-syntax-propertize) (setq-local prettify-symbols-alist js--prettify-symbols-alist) -- 2.39.2