From: Stefan Monnier Date: Thu, 3 Sep 2015 19:08:57 +0000 (-0400) Subject: (tex--prettify-symbols-compose-p): Don't compose in verbatim blocks! X-Git-Tag: emacs-25.0.90~1225^2~41 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=2d19f8c8b48803059272ac1c9582d8a9dbafe6f7;p=emacs.git (tex--prettify-symbols-compose-p): Don't compose in verbatim blocks! * lisp/textmodes/tex-mode.el (tex--prettify-symbols-compose-p): Don't compose inside verbatim blocks! --- diff --git a/lisp/textmodes/tex-mode.el b/lisp/textmodes/tex-mode.el index 6244189f64a..5fdf9e3b250 100644 --- a/lisp/textmodes/tex-mode.el +++ b/lisp/textmodes/tex-mode.el @@ -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)