[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/auctex 492b7f4cca: Use font-lock face names instead of
From: |
ELPA Syncer |
Subject: |
[elpa] externals/auctex 492b7f4cca: Use font-lock face names instead of variables |
Date: |
Thu, 19 Dec 2024 03:57:23 -0500 (EST) |
branch: externals/auctex
commit 492b7f4cca336997dc742c4c24764da1b718244e
Author: Arash Esbati <arash@gnu.org>
Commit: Arash Esbati <arash@gnu.org>
Use font-lock face names instead of variables
* tex-font.el (tex-font-lock-syntactic-face-function): Return face
names and not the variables version which is obsolete with Emacs
31 (commit 3d3c1094).
(tex-math-face): Delete variable. (bug#74939)
---
tex-font.el | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/tex-font.el b/tex-font.el
index 84dfe71b7a..018c6e8967 100644
--- a/tex-font.el
+++ b/tex-font.el
@@ -143,16 +143,14 @@
(defvar tex-font-lock-keywords tex-font-lock-keywords-1
"Default expressions to highlight in TeX modes.")
-
(defface tex-math-face
'((t :inherit font-lock-string-face))
"Face used to highlight TeX math expressions."
:group 'tex)
-(defvar tex-math-face 'tex-math-face)
;; Use string syntax but math face for $...$.
(defun tex-font-lock-syntactic-face-function (state)
- (if (nth 3 state) tex-math-face font-lock-comment-face))
+ (if (nth 3 state) 'tex-math-face 'font-lock-comment-face))
;;;###autoload
(defun tex-font-setup ()
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [elpa] externals/auctex 492b7f4cca: Use font-lock face names instead of variables,
ELPA Syncer <=