[Top][All Lists]

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

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

From: Tassilo Horn
Subject: Re: [AUCTeX] How to use tex--prettify-symbols-alist?
Date: Wed, 09 Mar 2016 18:49:59 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.92 (gnu/linux)

Marcin Borkowski <address@hidden> writes:

Hi Marcin,

> Here's what tex.el contains:
> (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)))))))
> 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.

I just tested with Emacs 25 as of today and the current AUCTeX ELPA
package.  My ~/.emacs for testing was either empty or just contained
(package-initialize).  In both cases, finding a TeX file and enabling
`prettify-symbols-mode' has the result of using the above function as
override for the default `tex--prettify-symbols-compose-p'.

Do you somehow load AUCTeX manually?


reply via email to

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