auctex-devel
[Top][All Lists]
Advanced

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

Re: [AUCTeX-devel] What is the proper way to install auctex as a user?


From: Arash Esbati
Subject: Re: [AUCTeX-devel] What is the proper way to install auctex as a user?
Date: Mon, 12 Mar 2018 21:20:10 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3

Arash Esbati <address@hidden> writes:

> Alex Branham <address@hidden> writes:
>
>> It seems that didn't quite help. I'm still getting a lot of errors that look 
>> like this:
>>
>> Error during redisplay: (jit-lock-function 2855) signaled 
>> (wrong-type-argument integer-or-marker-p nil)
>> Error during redisplay: (jit-lock-function 10261) signaled (void-function 
>> :super)
>
> Can you please restart Emacs, eval this in scratch
>
>     (setq font-latex-fontify-script nil)
>
> and open your .tex file again?

Following up myself, I think I found the problem.  I installed this
patch which replaces `case' macro from `cl' with `cl-case' from
`cl-lib'.

Can you please update your repo, compile the files and try it again?

--8<---------------cut here---------------start------------->8---
diff --git a/font-latex.el b/font-latex.el
index 1df751a..b3ab6f7 100644
--- a/font-latex.el
+++ b/font-latex.el
@@ -2023,7 +2023,7 @@ END marks boundaries for searching for quotation ends."
 (defun font-latex--get-script-props (pos script-type)
   (let* ((old-raise (or (plist-get (get-text-property pos 'display) 'raise) 
0.0))
         (new-level (1+ (or (get-text-property pos 'script-level) 0)))
-        (disp-props (copy-sequence (case script-type
+        (disp-props (copy-sequence (cl-case script-type
                                      (:super (cdr font-latex-script-display))
                                      (:sub   (car 
font-latex-script-display)))))
         (new-disp-props (let ((raise (plist-get disp-props 'raise))
@@ -2041,7 +2041,7 @@ END marks boundaries for searching for quotation ends."
                                                   (* nl nl 
0.012018514285714385)))))
                             disp-props))))
     `(face ,(if (<= new-level font-latex-fontify-script-max-level)
-               (case script-type
+               (cl-case script-type
                  (:super 'font-latex-superscript-face)
                  (:sub   'font-latex-subscript-face))
              nil)
--8<---------------cut here---------------end--------------->8---

Best, Arash



reply via email to

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