Marcin Borkowski <[email protected]> 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? Bye, Tassilo _______________________________________________ auctex mailing list [email protected] https://lists.gnu.org/mailman/listinfo/auctex
