emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 3fbc53b: Remove font-latex specific check


From: Tassilo Horn
Subject: [Emacs-diffs] master 3fbc53b: Remove font-latex specific check
Date: Sat, 26 Sep 2015 05:39:03 +0000

branch: master
commit 3fbc53b09c21d5657c62a4a295b5b70a6ea5d661
Author: Tassilo Horn <address@hidden>
Commit: Tassilo Horn <address@hidden>

    Remove font-latex specific check
    
    * lisp/textmodes/tex-mode.el (tex--prettify-symbols-compose-p): Use
    syntax-ppss data to identify verbatim contents.
---
 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 16162e1..bf15b26 100644
--- a/lisp/textmodes/tex-mode.el
+++ b/lisp/textmodes/tex-mode.el
@@ -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)
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]