From 3fbc53b09c21d5657c62a4a295b5b70a6ea5d661 Mon Sep 17 00:00:00 2001 From: Tassilo Horn Date: Sat, 26 Sep 2015 07:23:21 +0200 Subject: [PATCH] Remove font-latex specific check * lisp/textmodes/tex-mode.el (tex--prettify-symbols-compose-p): Use syntax-ppss data to identify verbatim contents. --- lisp/textmodes/tex-mode.el | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lisp/textmodes/tex-mode.el b/lisp/textmodes/tex-mode.el index 16162e14ef2..bf15b2628f9 100644 --- a/lisp/textmodes/tex-mode.el +++ b/lisp/textmodes/tex-mode.el @@ -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) -- 2.39.2