|
From: | Gabriele Nicolardi |
Subject: | bug#69404: Loss of latex-mode fontification when loading libraries in latex-mode-hook that require json-mode |
Date: | Mon, 26 Feb 2024 17:24:12 +0100 |
User-agent: | Mozilla Thunderbird |
In the buffer loaded as above, with the wrong fontification, I have: major-mode is a variable defined in ‘C source code’. Its value is ‘latex-mode’ Original value was ‘fundamental-mode’ Local in buffer test.tex; global value is fundamental-modeThen I suggest to look for the reason in json-mode.el. For example, this part: (add-to-list 'magic-fallback-mode-alist '("^[{[]$" . json-mode)) could change the global state when you load json-mode.
I opened and issue on the json-mode GitHub project page.
[Prev in Thread] | Current Thread | [Next in Thread] |