bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#33937: 26.1; mhtml-mode fails to capture font-lock-keywords-case-fol


From: Stefan Monnier
Subject: bug#33937: 26.1; mhtml-mode fails to capture font-lock-keywords-case-fold-search
Date: Wed, 30 Oct 2019 17:19:00 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

>        ;; Case fold during regexp fontification?
> -      (when (nth 2 defaults)
> -     (set (make-local-variable 'font-lock-keywords-case-fold-search) t))
> +      (if (nth 2 defaults)
> +          (set (make-local-variable 'font-lock-keywords-case-fold-search) t)
> +        (kill-local-variable 'font-lock-keywords-case-fold-search))
>
> It's slightly puzzling -- font-lock-keywords-case-fold-search is
> permanently buffer-local, but I guess that puzzlement was there before
> this patch, but the kill-local-variable thing is what makes mhtlm not
> work.
>
> Stefan, do you remember the reason for this change?

I can't remember the specific case, but I remember that it was basically
the inverse situation where font-lock-keywords-case-fold-search was left
at `t` instead of resetting it to the default nil.

I guess we should just

    (setq-local font-lock-keywords-case-fold-search (nth 2 defaults))

instead,


        Stefan






reply via email to

[Prev in Thread] Current Thread [Next in Thread]