branch: main
commit 0deabcab40a726464ba17b8ff1b3e9717f6d6dda
Author: Arash Esbati <[email protected]>
Commit: Arash Esbati <[email protected]>

    Don't run style hooks expl3.el and xparse.el
    
    * style/acro.el ("acro"):
    * style/fontspec.el ("fontspec"):
    * style/siunitx.el ("siunitx"):
    * style/unicode-math.el ("unicode-math"): Don't run style hooks
    expl3.el and xparse.el which are not relevant for usual LaTeX
    files.  expl3.el changes the syntax for : and _ which has side
    effects for casual users.  See:
    https://lists.gnu.org/archive/html/auctex/2026-01/msg00011.html
---
 style/acro.el         |  5 ++---
 style/fontspec.el     |  8 ++------
 style/siunitx.el      | 10 +++-------
 style/unicode-math.el |  8 +++-----
 4 files changed, 10 insertions(+), 21 deletions(-)

diff --git a/style/acro.el b/style/acro.el
index 2caa60be..f6609434 100644
--- a/style/acro.el
+++ b/style/acro.el
@@ -1,6 +1,6 @@
 ;;; acro.el --- AUCTeX style for `acro.sty' version v3.8  -*- lexical-binding: 
t; -*-
 
-;; Copyright (C) 2013-2025 Free Software Foundation, Inc.
+;; Copyright (C) 2013-2026 Free Software Foundation, Inc.
 
 ;; Maintainer: [email protected]
 ;; Author: Mosè Giordano <[email protected]>
@@ -760,8 +760,7 @@ string."
     "l3sort"
     "xspace"
     "xtemplate"
-    "l3keys2e"
-    "expl3")
+    "l3keys2e")
 
    ;; Fontification
    (when (and (featurep 'font-latex)
diff --git a/style/fontspec.el b/style/fontspec.el
index b9ded94f..66d1a0ae 100644
--- a/style/fontspec.el
+++ b/style/fontspec.el
@@ -1,6 +1,6 @@
 ;;; fontspec.el --- AUCTeX style for `fontspec.sty' version 2.7i.  -*- 
lexical-binding: t; -*-
 
-;; Copyright (C) 2013--2022 Free Software Foundation, Inc.
+;; Copyright (C) 2013--2026 Free Software Foundation, Inc.
 
 ;; Maintainer: [email protected]
 ;; Author: Mosè Giordano <[email protected]>
@@ -36,10 +36,7 @@
 (require 'latex)
 
 ;; Silence the compiler:
-(declare-function font-latex-add-keywords
-                  "font-latex"
-                  (keywords class))
-
+(declare-function font-latex-add-keywords "font-latex" (keywords class))
 (declare-function LaTeX-color-definecolor-list "color" ())
 (declare-function LaTeX-xcolor-definecolor-list "xcolor" ())
 
@@ -296,7 +293,6 @@ to appropriate keys which are eventually prepended to
  (lambda ()
 
    (TeX-check-engine-add-engines 'luatex 'xetex)
-   (TeX-run-style-hooks "expl3" "xparse")
 
    ;; Add fontspec to the parser.
    (TeX-auto-add-regexp LaTeX-fontspec-newfontcmd-regexp)
diff --git a/style/siunitx.el b/style/siunitx.el
index 49c62ba2..57aa7f49 100644
--- a/style/siunitx.el
+++ b/style/siunitx.el
@@ -1,6 +1,6 @@
 ;;; siunitx.el --- AUCTeX style for `siunitx.sty' version 3.3.36.  -*- 
lexical-binding: t; -*-
 
-;; Copyright (C) 2012-2024  Free Software Foundation, Inc.
+;; Copyright (C) 2012-2026 Free Software Foundation, Inc.
 
 ;; Maintainer: [email protected]
 ;; Author: Mosè Giordano <[email protected]>
@@ -32,9 +32,7 @@
 (require 'latex)
 
 ;; Silence the compiler:
-(declare-function font-latex-add-keywords
-                  "font-latex"
-                  (keywords class))
+(declare-function font-latex-add-keywords "font-latex" (keywords class))
 (declare-function LaTeX-color-definecolor-list "color" ())
 (declare-function LaTeX-xcolor-definecolor-list "xcolor" ())
 
@@ -471,9 +469,7 @@ string."
 
    (TeX-run-style-hooks "l3keys2e"
                         "array"
-                        "amstext"
-                        "xparse"
-                        "expl3")
+                        "amstext")
 
    ;; Fontification
    (when (and (featurep 'font-latex)
diff --git a/style/unicode-math.el b/style/unicode-math.el
index 03156760..759904d9 100644
--- a/style/unicode-math.el
+++ b/style/unicode-math.el
@@ -1,6 +1,6 @@
 ;;; unicode-math.el --- AUCTeX style for `unicode-math.sty' version 0.7e.  -*- 
lexical-binding: t; -*-
 
-;; Copyright (C) 2013, 2018, 2020 Free Software Foundation, Inc.
+;; Copyright (C) 2013--2026 Free Software Foundation, Inc.
 
 ;; Maintainer: [email protected]
 ;; Author: Mosè Giordano <[email protected]>
@@ -31,9 +31,7 @@
 (require 'latex)
 
 ;; Silence the compiler:
-(declare-function font-latex-add-keywords
-                  "font-latex"
-                  (keywords class))
+(declare-function font-latex-add-keywords "font-latex" (keywords class))
 
 (defvar LaTeX-unicode-math-package-options-list
   '(("math-style" ("ISO" "TeX" "french" "upright" "literal"))
@@ -58,7 +56,7 @@
 (TeX-add-style-hook
  "unicode-math"
  (lambda ()
-   (TeX-run-style-hooks "ifxetex" "ifluatex" "expl3" "xparse" "l3keys2e"
+   (TeX-run-style-hooks "ifxetex" "ifluatex" "l3keys2e"
                         "fontspec" "catchfile" "fix-cm" "filehook")
    (TeX-add-symbols
     '("setmathfont" [TeX-arg-key-val LaTeX-unicode-math-setmathfont-options]

Reply via email to