Remove font-latex specific check
* lisp/textmodes/tex-mode.el (tex--prettify-symbols-compose-p): Use syntax-ppss data to identify verbatim contents.
This commit is contained in:
parent
188f657a82
commit
3fbc53b09c
1 changed files with 1 additions and 4 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue