Subject: Re: bug#23603: 25.1.50; [js-mode] void-function js--font-lock-keywords-3

From: Dmitry Gutov <[email-masked]>
Date: Tue, 24 May 2016 01:07:03 +0300

Hi John,

Thanks for the report.

On 05/23/2016 07:05 PM, John Ledbetter wrote:

> When enabling js-mode, font lock does not work (no syntax
> highlighting). *Messages* indicates the following:
>
> Error during redisplay: (jit-lock-function 18) signaled (void-function js--font-lock-keywords-3) [14 times]
> Error during redisplay: (jit-lock-function 1) signaled (void-function js--font-lock-keywords-3)
> Error during redisplay: (jit-lock-function 18) signaled (void-function js--font-lock-keywords-3) [5 times]

It comes from a change hidden in a commit with an innocuous message, 
4deb5bd9b1d400b9f932053eb6900e5700414ce8. The change is:

-  (setq-local font-lock-defaults (list js--font-lock-keywords))
+  (setq-local font-lock-defaults '(js--font-lock-keywords))

I don't see a better fix for this except by reverting it (or using a 
quasiquote). Stefan?