[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[AUCTeX-diffs] [elpa] externals/auctex 86de20d0b2 02/14: Make prettifica
From: |
Tassilo Horn |
Subject: |
[AUCTeX-diffs] [elpa] externals/auctex 86de20d0b2 02/14: Make prettification work reliably |
Date: |
Sat, 16 Apr 2022 04:28:42 -0400 (EDT) |
branch: externals/auctex
commit 86de20d0b285803ead0f242be5216916bab2abc0
Author: Ikumi Keita <ikumi@ikumi.que.jp>
Commit: Ikumi Keita <ikumi@ikumi.que.jp>
Make prettification work reliably
Simplify at the same time, assuming to bump required Emacs version to
25.1.
* tex.el (TeX--prettify-symbols-compose-p): Define unconditionally.
(VirTeX-common-initialization): Always prepare for prettification.
---
tex.el | 25 ++++++++++---------------
1 file changed, 10 insertions(+), 15 deletions(-)
diff --git a/tex.el b/tex.el
index ca4b8ad35b..0187459b64 100644
--- a/tex.el
+++ b/tex.el
@@ -3719,14 +3719,12 @@ 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 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."
@@ -3786,13 +3784,10 @@ The algorithm is as follows:
(TeX-source-correlate-mode 1))
;; Prettify Symbols mode
- (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)
- (set (make-local-variable 'prettify-symbols-compose-predicate)
- #'TeX--prettify-symbols-compose-p)))
+ (require 'tex-mode)
+ (setq-local prettify-symbols-alist tex--prettify-symbols-alist)
+ (add-function :override (local 'prettify-symbols-compose-predicate)
+ #'TeX--prettify-symbols-compose-p)
;; Standard Emacs completion-at-point support
(add-hook 'completion-at-point-functions
- [AUCTeX-diffs] [elpa] externals/auctex updated (2568505587 -> b91f15b3a3), Tassilo Horn, 2022/04/16
- [AUCTeX-diffs] [elpa] externals/auctex db75369df3 05/14: * latex.el (TeX-read-hook): Support 'include/excluded' hook., Tassilo Horn, 2022/04/16
- [AUCTeX-diffs] [elpa] externals/auctex 86de20d0b2 02/14: Make prettification work reliably,
Tassilo Horn <=
- [AUCTeX-diffs] [elpa] externals/auctex aae80c4725 11/14: ; Minor Doc fix, Tassilo Horn, 2022/04/16
- [AUCTeX-diffs] [elpa] externals/auctex 12f0b610a1 06/14: * style/ltx-base.el: Update style., Tassilo Horn, 2022/04/16
- [AUCTeX-diffs] [elpa] externals/auctex 5d951fea03 09/14: Fix bibtex dialect, Tassilo Horn, 2022/04/16
- [AUCTeX-diffs] [elpa] externals/auctex df8d6fe772 04/14: Document how to bump the required Emacs version, Tassilo Horn, 2022/04/16
- [AUCTeX-diffs] [elpa] externals/auctex 0b24e363f8 01/14: Improve indentation after '\end{macrocode}' in docTeX mode, Tassilo Horn, 2022/04/16
- [AUCTeX-diffs] [elpa] externals/auctex a25652ffe2 10/14: Update style/fbox.el to package version 0.06, Tassilo Horn, 2022/04/16
- [AUCTeX-diffs] [elpa] externals/auctex f8d19d5cbb 07/14: ; * style/ltx-base.el ("ltx-base"): Fix entry for "@addtoreset"., Tassilo Horn, 2022/04/16
- [AUCTeX-diffs] [elpa] externals/auctex 62f8341717 03/14: Lift required GNU Emacs version to 25.1, Tassilo Horn, 2022/04/16
- [AUCTeX-diffs] [elpa] externals/auctex 35b71dfe3f 08/14: Add new style/etoolbox.el, Tassilo Horn, 2022/04/16
- [AUCTeX-diffs] [elpa] externals/auctex b91f15b3a3 14/14: Release GNU AUCTeX 13.1.3, Tassilo Horn, 2022/04/16