unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Font lock mode and auctex
@ 2018-02-27 14:45 azubi
  2018-02-27 15:49 ` Stefan Monnier
  0 siblings, 1 reply; 2+ messages in thread
From: azubi @ 2018-02-27 14:45 UTC (permalink / raw)
  To: help-gnu-emacs

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 "\b\205\262



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


Thank you in advance for your help


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-02-27 15:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-02-27 14:45 Font lock mode and auctex azubi
2018-02-27 15:49 ` Stefan Monnier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).