[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#58888: 28.1.90; font-lock-defaults not respected when hack-local-var
From: |
Ihor Radchenko |
Subject: |
bug#58888: 28.1.90; font-lock-defaults not respected when hack-local-variables unsafe variable dialogue is displayed before setting the defaults |
Date: |
Mon, 31 Oct 2022 07:11:29 +0000 |
Stefan Monnier <monnier@iro.umontreal.ca> writes:
> Hmm... AFAICT the problem here is that the implementation of
> `global-font-lock-mode` ends up trying to enable `font-lock-mode` in
> that file's buffer during execution of the
> `after-major-mode-change-hook` of *another* buffer while querying
> whether to obey those file-local settings, and then fails to try again
> when the hook is run in the desired buffer.
>
> I suspect the patch below might help (requires recompiling
> `font-core.el` and re-dumping Emacs), but as the comment in there
> explains it might not always be sufficient either.
I tried the patch via make extraclean; make bootstrap
I can still reproduce the original recipe.
--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>