branch: main
commit 492b7f4cca336997dc742c4c24764da1b718244e
Author: Arash Esbati <[email protected]>
Commit: Arash Esbati <[email protected]>
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 84dfe71b..018c6e89 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 ()