Remove font-latex specific check

* lisp/textmodes/tex-mode.el (tex--prettify-symbols-compose-p): Use
syntax-ppss data to identify verbatim contents.
This commit is contained in:
Tassilo Horn 2015-09-26 07:23:21 +02:00
parent 188f657a82
commit 3fbc53b09c

View file

@ -3419,10 +3419,7 @@ There might be text before point."
(not (memq after-char
'(?0 ?1 ?2 ?3 ?4 ?5 ?6 ?7 ?8 ?9 ?+ ?- ?' ?\"))))
;; Don't compose inside verbatim blocks.
(let* ((face (get-text-property end 'face))
(faces (if (consp face) face (list face))))
(or (memq 'tex-verbatim faces)
(memq 'font-latex-verbatim-face faces)))))))
(eq 2 (nth 7 (syntax-ppss)))))))
(run-hooks 'tex-mode-load-hook)