auctex
[Top][All Lists]
Advanced

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

Re: [AUCTeX] How to use tex--prettify-symbols-alist?


From: Marcin Borkowski
Subject: Re: [AUCTeX] How to use tex--prettify-symbols-alist?
Date: Wed, 02 Mar 2016 10:54:04 +0100
User-agent: mu4e 0.9.13; emacs 25.1.50.5

On 2016-02-27, at 19:42, Marcin Borkowski <address@hidden> wrote:

> Man, I *am* stupid and impatient.  Please consider my questions
> nonexistent.

Hi,

so it seems not that simple.

Here's what tex.el contains:

--8<---------------cut here---------------start------------->8---
(when (and (boundp 'tex--prettify-symbols-alist)
           (boundp 'prettify-symbols-compose-predicate))
  (defun TeX--prettify-symbols-compose-p (start end match)
    (and (tex--prettify-symbols-compose-p start end match)
         (not (let ((face (get-text-property end 'face)))
                (if (consp face)
                    (memq 'font-latex-verbatim-face face)
                  (eq face 'font-latex-verbatim-face)))))))
--8<---------------cut here---------------end--------------->8---

However, `tex--prettify-symbols-alist' is defined in tex-mode.el, which
seems not to be loaded at the time tex.el is loaded.  IOW, the defun
form is not evaluated.

What should I do?  I can (require 'tex-mode) manually in my init.el (and
this is what I do now), but this I consider an ugly workaround.  I'm
tempted to think this issue is a bug.

(AUCTeX version: auctex-11.89.1, from Elpa.)

Best,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Faculty of Mathematics and Computer Science
Adam Mickiewicz University



reply via email to

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