branch: main commit f9544fbdb6db621de1f32de0a3a52950a3b70095 Author: Arash Esbati <ar...@gnu.org> Commit: Arash Esbati <ar...@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 <t...@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))