]> git.eshelyaron.com Git - emacs.git/commitdiff
Remove font-latex specific check
authorTassilo Horn <tsdh@gnu.org>
Sat, 26 Sep 2015 05:23:21 +0000 (07:23 +0200)
committerTassilo Horn <tsdh@gnu.org>
Sat, 26 Sep 2015 05:37:58 +0000 (07:37 +0200)
* lisp/textmodes/tex-mode.el (tex--prettify-symbols-compose-p): Use
syntax-ppss data to identify verbatim contents.

lisp/textmodes/tex-mode.el

index 16162e14ef28e3db25aa5b751613f83df0fa9123..bf15b2628f95281eab545a7e281562e92faafadb 100644 (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)