]> git.eshelyaron.com Git - emacs.git/commitdiff
(tex--prettify-symbols-compose-p): Don't compose in verbatim blocks!
authorStefan Monnier <monnier@iro.umontreal.ca>
Thu, 3 Sep 2015 19:08:57 +0000 (15:08 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Thu, 3 Sep 2015 19:08:57 +0000 (15:08 -0400)
* lisp/textmodes/tex-mode.el (tex--prettify-symbols-compose-p):
Don't compose inside verbatim blocks!

lisp/textmodes/tex-mode.el

index 6244189f64a3b3d8b71eabf224b74134a48ef79a..5fdf9e3b2502bca150f7fc130835f989a21cfa15 100644 (file)
@@ -3410,6 +3410,8 @@ There might be text before point."
     (not (or
           ;; Don't compose \alpha@foo.
           (eq after-syntax ?_)
+          ;; Don't compose inside verbatim blocks!
+          (nth 8 (syntax-ppss))
           ;; The \alpha in \alpha2 may be composed but of course \alphax may not.
           (and (eq after-syntax ?w)
                (or (< after-char ?0)