[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/auctex 3bb1cbe 56/78: Add font-latex specific prettify-
From: |
Tassilo Horn |
Subject: |
[elpa] externals/auctex 3bb1cbe 56/78: Add font-latex specific prettify-symbols-compose-predicate |
Date: |
Mon, 19 Oct 2015 09:11:05 +0000 |
branch: externals/auctex
commit 3bb1cbebf8a40ee668742ecfa51497fadabe0855
Author: Tassilo Horn <address@hidden>
Commit: Tassilo Horn <address@hidden>
Add font-latex specific prettify-symbols-compose-predicate
* tex.el (TeX--prettify-symbols-compose-p): New function.
(VirTeX-common-initialization): Use it.
---
ChangeLog | 5 +++++
tex.el | 16 ++++++++++++----
2 files changed, 17 insertions(+), 4 deletions(-)
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
- [elpa] externals/auctex 8359f08 39/78: Fix in Italian language polyglossia style file., (continued)
- [elpa] externals/auctex 8359f08 39/78: Fix in Italian language polyglossia style file., Tassilo Horn, 2015/10/19
- [elpa] externals/auctex 0377238 31/78: Add TeX-compile-run-all to AUCTeX reference card., Tassilo Horn, 2015/10/19
- [elpa] externals/auctex 5dd4f21 35/78: Style file for polyglossia package., Tassilo Horn, 2015/10/19
- [elpa] externals/auctex 4810753 41/78: Add new style Alegreya.el., Tassilo Horn, 2015/10/19
- [elpa] externals/auctex 2b648fe 38/78: Remove one TODO in style/polyglossia.el., Tassilo Horn, 2015/10/19
- [elpa] externals/auctex 22c7d9f 27/78: Implement "run-all" for regions and sections, Tassilo Horn, 2015/10/19
- [elpa] externals/auctex 6b3cbea 32/78: Suggest to run Index when appropriate., Tassilo Horn, 2015/10/19
- [elpa] externals/auctex a76afdf 49/78: Add abstract env only to classes defining it., Tassilo Horn, 2015/10/19
- [elpa] externals/auctex a864241 55/78: Fixup space-before-tab git warned about., Tassilo Horn, 2015/10/19
- [elpa] externals/auctex 9b5827c 44/78: Fix typo in error message., Tassilo Horn, 2015/10/19
- [elpa] externals/auctex 3bb1cbe 56/78: Add font-latex specific prettify-symbols-compose-predicate,
Tassilo Horn <=
- [elpa] externals/auctex 8a2bd0b 68/78: Fix previous commit., Tassilo Horn, 2015/10/19
- [elpa] externals/auctex e85968c 66/78: Support caption.el and some other fixes., Tassilo Horn, 2015/10/19
- [elpa] externals/auctex cac89e9 63/78: Start supporting ConTeXt Mark IV., Tassilo Horn, 2015/10/19
- [elpa] externals/auctex ac8d479 69/78: Support newfloat.el., Tassilo Horn, 2015/10/19
- [elpa] externals/auctex 320de59 53/78: Apply some fixes to caption.el., Tassilo Horn, 2015/10/19
- [elpa] externals/auctex ce8981a 64/78: Fontify math environment, Tassilo Horn, 2015/10/19
- [elpa] externals/auctex 0c4e740 62/78: Fix typo in comment., Tassilo Horn, 2015/10/19
- [elpa] externals/auctex 3b5f047 67/78: Add supporto to ConTeXt Mark IV in some sentinels., Tassilo Horn, 2015/10/19
- [elpa] externals/auctex 4a12225 72/78: Use `LaTeX-add-counters' on "LTchunksize"., Tassilo Horn, 2015/10/19
- [elpa] externals/auctex 1f116b8 74/78: Fill $...$ like \(...\) (bug#21645), Tassilo Horn, 2015/10/19