diff options
| author | Tassilo Horn | 2015-09-26 07:23:21 +0200 |
|---|---|---|
| committer | Tassilo Horn | 2015-09-26 07:37:58 +0200 |
| commit | 3fbc53b09c21d5657c62a4a295b5b70a6ea5d661 (patch) | |
| tree | e84068b6a58a952075bb99d6a1d36131d67f75a0 | |
| parent | 188f657a827b04d72376f8b483c7d4b678e96fac (diff) | |
| download | emacs-3fbc53b09c21d5657c62a4a295b5b70a6ea5d661.tar.gz emacs-3fbc53b09c21d5657c62a4a295b5b70a6ea5d661.zip | |
Remove font-latex specific check
* lisp/textmodes/tex-mode.el (tex--prettify-symbols-compose-p): Use
syntax-ppss data to identify verbatim contents.
| -rw-r--r-- | lisp/textmodes/tex-mode.el | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lisp/textmodes/tex-mode.el b/lisp/textmodes/tex-mode.el index 16162e14ef2..bf15b2628f9 100644 --- a/lisp/textmodes/tex-mode.el +++ b/lisp/textmodes/tex-mode.el | |||
| @@ -3419,10 +3419,7 @@ There might be text before point." | |||
| 3419 | (not (memq after-char | 3419 | (not (memq after-char |
| 3420 | '(?0 ?1 ?2 ?3 ?4 ?5 ?6 ?7 ?8 ?9 ?+ ?- ?' ?\")))) | 3420 | '(?0 ?1 ?2 ?3 ?4 ?5 ?6 ?7 ?8 ?9 ?+ ?- ?' ?\")))) |
| 3421 | ;; Don't compose inside verbatim blocks. | 3421 | ;; Don't compose inside verbatim blocks. |
| 3422 | (let* ((face (get-text-property end 'face)) | 3422 | (eq 2 (nth 7 (syntax-ppss))))))) |
| 3423 | (faces (if (consp face) face (list face)))) | ||
| 3424 | (or (memq 'tex-verbatim faces) | ||
| 3425 | (memq 'font-latex-verbatim-face faces))))))) | ||
| 3426 | 3423 | ||
| 3427 | (run-hooks 'tex-mode-load-hook) | 3424 | (run-hooks 'tex-mode-load-hook) |
| 3428 | 3425 | ||