projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c37ef75
)
(tex--prettify-symbols-compose-p): Don't compose in verbatim blocks!
author
Stefan Monnier
<monnier@iro.umontreal.ca>
Thu, 3 Sep 2015 19:08:57 +0000
(15:08 -0400)
committer
Stefan 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
patch
|
blob
|
history
diff --git
a/lisp/textmodes/tex-mode.el
b/lisp/textmodes/tex-mode.el
index 6244189f64a3b3d8b71eabf224b74134a48ef79a..5fdf9e3b2502bca150f7fc130835f989a21cfa15 100644
(file)
--- 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)