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

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

Font lock mode and auctex


From: azubi
Subject: Font lock mode and auctex
Date: Tue, 27 Feb 2018 15:45:51 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0

Hi all,

recently (I don't know when exactly), I've experienced an error message when trying to load a "Latex" file.

I've the following message:

File mode specification error: (void-variable font-lock-face-attributes)

when I use emacs-snapshot (27.0.50) or


File mode specification error: (error "Invalid byte opcode: op=183, ptr=2")
File local-variables error: (error "Invalid byte opcode: op=183, ptr=2")

with emacs 24.5.1 (see below)


Then the file I try to edit is loaded, but without fontification and auctex is not loaded. I must say that for every other type of file (org, C, html, java, scala) I regularly edit, I did not see any problem.

My config:

GNU Emacs 27.0.50 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.18.9) of 2018-02-26 or

GNU Emacs 24.5.1 (x86_64-pc-linux-gnu, GTK+ Version 3.18.9) of 2017-09-20 on lcy01-07, modified by Debian

The version of auctex is the latest available (12.1.0) on elpa.



I do not know how to debug this error message exactly. The "--debug-init" flags gives for emacs-24.5.1:

Debugger entered--Lisp error: (void-function cl-defstruct)
(cl-defstruct latex-math-preview-symbol source display func args image math) eval-buffer(#<buffer *load*-790676> nil "/home/azubi/.emacs.d/elpa/latex-math-preview-20170522.1455/latex-math-preview-autoloads.el" nil t) ; Reading at buffer position 570

load-with-code-conversion("/home/azubi/.emacs.d/elpa/latex-math-preview-20170522.1455/latex-math-preview-autoloads.el" "/home/azubi/.emacs.d/elpa/latex-math-preview-20170522.1455/latex-math-preview-autoloads.el" nil t)

load("/home/azubi/.emacs.d/elpa/latex-math-preview-20170522.1455/latex-math-preview-autoloads" nil t) #[0 "\302\303\304\305\300\"\301\"\306\307#\207" [latex-math-preview "/home/azubi/.emacs.d/elpa/latex-math-preview-20170522.1455" load expand-file-name format "%s-autoloads" nil t] 5 "\n\n(fn)"]() funcall(#[0 "\302\303\304\305\300\"\301\"\306\307#\207" [latex-math-preview "/home/azubi/.emacs.d/elpa/latex-math-preview-20170522.1455" load expand-file-name format "%s-autoloads" nil t] 5 "\n\n(fn)"]) package-activate-1([cl-struct-package-desc latex-math-preview (20170522 1455) "preview LaTeX mathematical expressions." nil nil nil "/home/azubi/.emacs.d/elpa/latex-math-preview-20170522.1455" ((:keywords "latex" "tex") (:url . "https://gitlab.com/latex-math-preview/latex-math-preview";) (:commit . "775887a89447dd19541b121161cc02e9799d0d3a")) nil])
  package-activate(latex-math-preview)
  package-initialize()
eval-buffer(#<buffer *load*> nil "/home/azubi/.emacs" nil t) ; Reading at buffer position 2070
  load-with-code-conversion("/home/azubi/.emacs" "/home/azubi/.emacs" t t)
  load("~/.emacs" t t)
  #[0 "\205\262



and nothing for emacs-snapshot. Can you please give me some pointer where to search ?


Thank you in advance for your help


reply via email to

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