auctex-diffs
[Top][All Lists]
Advanced

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

main f9544fbd: * style/expl3.el ("expl3"): Check for font-latex feature.


From: Arash Esbati
Subject: main f9544fbd: * style/expl3.el ("expl3"): Check for font-latex feature.
Date: Wed, 7 Aug 2024 15:12:53 -0400 (EDT)

branch: main
commit f9544fbdb6db621de1f32de0a3a52950a3b70095
Author: Arash Esbati <arash@gnu.org>
Commit: Arash Esbati <arash@gnu.org>

    * style/expl3.el ("expl3"): Check for font-latex feature.
---
 style/expl3.el | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/style/expl3.el b/style/expl3.el
index 4326f95b..36cb5a5e 100644
--- a/style/expl3.el
+++ b/style/expl3.el
@@ -1,6 +1,6 @@
 ;;; expl3.el --- AUCTeX style for `expl3.sty'  -*- lexical-binding: t; -*-
 
-;; Copyright (C) 2015--2023 Free Software Foundation, Inc.
+;; Copyright (C) 2015--2024 Free Software Foundation, Inc.
 
 ;; Author: Tassilo Horn <tsdh@gnu.org>
 ;; Maintainer: auctex-devel@gnu.org
@@ -50,7 +50,8 @@
  "expl3"
  (lambda ()
    (set-syntax-table LaTeX-expl3-syntax-table)
-   (when (and (eq TeX-install-font-lock 'font-latex-setup))
+   (when (and (featurep 'font-latex)
+              (eq TeX-install-font-lock 'font-latex-setup))
      ;; Fontify _ and : as part of macros.
      (add-to-list 'font-latex-match-simple-include-list "_" t)
      (add-to-list 'font-latex-match-simple-include-list ":" t))



reply via email to

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