From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: azubi Newsgroups: gmane.emacs.help Subject: Font lock mode and auctex Date: Tue, 27 Feb 2018 15:45:51 +0100 Organization: Posted through ALPHANET (http://www.alphanet.ch/) Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1519744113 29994 195.159.176.226 (27 Feb 2018 15:08:33 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 27 Feb 2018 15:08:33 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Feb 27 16:08:29 2018 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eqgrj-0007K0-DN for geh-help-gnu-emacs@m.gmane.org; Tue, 27 Feb 2018 16:08:27 +0100 Original-Received: from localhost ([::1]:37888 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eqgtl-0005DF-Lb for geh-help-gnu-emacs@m.gmane.org; Tue, 27 Feb 2018 10:10:33 -0500 Original-Path: usenet.stanford.edu!goblin2!goblin.stu.neva.ru!news.alphanet.ch!alphanet.ch!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 78 Original-NNTP-Posting-Host: 69.243.199.178.dynamic.wline.res.cust.swisscom.ch Original-X-Trace: shakotay.alphanet.ch 1519742751 1897 178.199.243.69 (27 Feb 2018 14:45:51 GMT) Original-X-Complaints-To: usenet@alphanet.ch Original-NNTP-Posting-Date: Tue, 27 Feb 2018 14:45:51 +0000 (UTC) X-Mozilla-News-Host: news://news.alphanet.ch:119 Content-Language: fr-CH Original-Xref: usenet.stanford.edu gnu.emacs.help:221978 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:116093 Archived-At: 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(# 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(# 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