auctex-diffs
[Top][All Lists]
Advanced

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

master 324250f2: Support macros for key-val package or class options


From: Arash Esbati
Subject: master 324250f2: Support macros for key-val package or class options
Date: Mon, 29 Aug 2022 17:17:53 -0400 (EDT)

branch: master
commit 324250f2433a7a7625d08b1ab76457199d9c191e
Author: Arash Esbati <arash@gnu.org>
Commit: Arash Esbati <arash@gnu.org>

    Support macros for key-val package or class options
    
    * style/ltx-base.el ("ltx-base"): Add kernel commands for creating
    and using key-val package or class options.
---
 style/ltx-base.el | 15 +++++++++++++--
 1 file changed, 13 insertions(+), 2 deletions(-)

diff --git a/style/ltx-base.el b/style/ltx-base.el
index d10a1379..693308a3 100644
--- a/style/ltx-base.el
+++ b/style/ltx-base.el
@@ -123,7 +123,13 @@
     '("addpenalty" "Penalty")
     '("@ifundefined" TeX-arg-macro 2)
     '("@ifnextchar" (TeX-arg-literal " ") (TeX-arg-free "Character") 2)
-    '("expandafter" 0))
+    '("expandafter" 0)
+
+    ;; These macros are currently (June 2022) described in ltkeys.dtx:
+    '("DeclareKeys" ["Family"] t)
+    '("DeclareUnknownKeyHandler" ["Family"] t)
+    '("ProcessKeyOptions" ["Family"])
+    '("SetKeys" ["Family"] t))
 
    ;; Fontification
    (when (and (featurep 'font-latex)
@@ -149,7 +155,12 @@
                                 ("ProcessOptions" "*")
                                 ("ExecuteOptions" "{")
                                 ("DeclareRobustCommand" "*|{\\[[{")
-                                ("CheckCommand"         "*|{\\[[{"))
+                                ("CheckCommand"         "*|{\\[[{")
+
+                                ("DeclareKeys"              "[{")
+                                ("DeclareUnknownKeyHandler" "[{")
+                                ("ProcessKeyOptions"        "[")
+                                ("SetKeys"                  "[{"))
                               'function)))
  TeX-dialect)
 



reply via email to

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