auctex-diffs
[Top][All Lists]
Advanced

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

[AUCTeX-diffs] GNU AUCTeX branch, master, updated. 3bb1cbebf8a40ee668742


From: Tassilo Horn
Subject: [AUCTeX-diffs] GNU AUCTeX branch, master, updated. 3bb1cbebf8a40ee668742ecfa51497fadabe0855
Date: Sat, 26 Sep 2015 05:45:02 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU AUCTeX".

The branch, master has been updated
       via  3bb1cbebf8a40ee668742ecfa51497fadabe0855 (commit)
      from  a864241956438b0529f5d75f3c5861404cec8587 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 3bb1cbebf8a40ee668742ecfa51497fadabe0855
Author: Tassilo Horn <address@hidden>
Date:   Sat Sep 26 07:44:09 2015 +0200

    Add font-latex specific prettify-symbols-compose-predicate
    
    * tex.el (TeX--prettify-symbols-compose-p): New function.
    (VirTeX-common-initialization): Use it.

diff --git a/ChangeLog b/ChangeLog
index a4cfa2e..f6cda86 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2015-09-26  Tassilo Horn  <address@hidden>
+
+       * tex.el (TeX--prettify-symbols-compose-p): New function.
+       (VirTeX-common-initialization): Use it.
+
 2015-09-25  Arash Esbati  <address@hidden>
 
        * Makefile.in (STYLESRC): Add new style.
diff --git a/tex.el b/tex.el
index e7c54be..912073d 100644
--- a/tex.el
+++ b/tex.el
@@ -3413,6 +3413,15 @@ The algorithm is as follows:
                     answer
                   TeX-default-mode))))))
 
+(when (and (boundp 'tex--prettify-symbols-alist)
+          (boundp 'prettify-symbols-compose-predicate))
+  (defun TeX--prettify-symbols-compose-p (start end match)
+    (and (tex--prettify-symbols-compose-p start end match)
+        (not (let ((face (get-text-property end 'face)))
+               (if (consp face)
+                   (memq 'font-latex-verbatim-face face)
+                 (eq face 'font-latex-verbatim-face)))))))
+
 (defun VirTeX-common-initialization ()
   "Perform basic initialization."
   (kill-all-local-variables)
@@ -3479,14 +3488,13 @@ The algorithm is as follows:
     (TeX-source-correlate-mode 1))
 
   ;; Prettify Symbols mode
-  (when (and (boundp 'tex--prettify-symbols-alist)
-            (boundp 'prettify-symbols-compose-predicate))
+  (when (fboundp 'TeX--prettify-symbols-compose-p)
     (set (make-local-variable 'prettify-symbols-alist) 
tex--prettify-symbols-alist)
     (TeX--if-macro-fboundp add-function
        (add-function :override (local 'prettify-symbols-compose-predicate)
-                     #'tex--prettify-symbols-compose-p)
+                     #'TeX--prettify-symbols-compose-p)
       (set (make-local-variable 'prettify-symbols-compose-predicate)
-          #'tex--prettify-symbols-compose-p)))
+          #'TeX--prettify-symbols-compose-p)))
 
   ;; Let `TeX-master-file' be called after a new file was opened and
   ;; call `TeX-update-style' on any file opened.  (The addition to the

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog |    5 +++++
 tex.el    |   16 ++++++++++++----
 2 files changed, 17 insertions(+), 4 deletions(-)


hooks/post-receive
-- 
GNU AUCTeX



reply via email to

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