GNU bug report logs - #69404
Loss of latex-mode fontification when loading libraries in latex-mode-hook that require json-mode

Previous Next

Package: emacs;

Reported by: Gabriele Nicolardi <gabriele <at> medialab.sissa.it>

Date: Mon, 26 Feb 2024 09:29:01 UTC

Severity: normal

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: Gabriele Nicolardi <gabriele <at> medialab.sissa.it>
Cc: 69404 <at> debbugs.gnu.org
Subject: bug#69404: Loss of latex-mode fontification when loading libraries in latex-mode-hook that require json-mode
Date: Mon, 26 Feb 2024 15:03:19 +0200
> Date: Mon, 26 Feb 2024 10:27:53 +0100
> From: Gabriele Nicolardi <gabriele <at> medialab.sissa.it>
> 
> I have a LaTeX file:
> 
> \documentclass{article}
> \usepackage{mwe}
> \begin{document}
> 
> \blindtext
> 
> \noindent
> \includegraphics[width=.4\textwidth]{example-image-a}\hfill
> \includegraphics[width=.4\textwidth]{example-image-b}
> 
> \blindtext
> 
> \end{document}
> 
> If I load it like this:
> 
> emacs -Q test.tex
> 
> I get this “correct” latex-mode fontification:
> 
> I have also a config file (I simplified it to obtain the feature):
> 
> (add-hook 'latex-mode-hook
>           #'(lambda ()
>           (package-initialize)
>           (require 'json-mode)))
> 
> If I load my .tex file like this:
> 
> emacs -Q --eval "(load-file \"/tmp/config.el\")" test.tex
> 
> I lose latex-mode fontification:

What is the value of major-mode after you load your .tex file as
above?




This bug report was last modified 1 year and 135 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.