Fix error when opening a tex file using emacs 24

After switching to emacs 24, each time I open a tex file, I was getting the error:

Error: Don't know how to compile nil

It turns out this is a well know bug. To fix it, you just need to change two lines in font-latex.el:

-      (byte-compile (intern (concat "font-latex-" name)))
-      (byte-compile (intern (concat "font-latex-" name "-make"))))))
+      (byte-compile (intern (concat "font-latex-match-" name)))
+      (byte-compile (intern (concat "font-latex-match-" name "-make"))))))

After editing the file, you need to byte compile font-latex.el.

Follow

atom feed twittergithubgplus