Commit 3fbc53b0 authored by Tassilo Horn's avatar Tassilo Horn

Remove font-latex specific check

* lisp/textmodes/tex-mode.el (tex--prettify-symbols-compose-p): Use
syntax-ppss data to identify verbatim contents.
parent 188f657a
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment