[latex3-commits] [git/LaTeX3-latex3-latex2e] develop: \DeclareUnknownKeyHandler better without "s" (84a576a9)
Joseph Wright
joseph.wright at morningstar2.co.uk
Wed Feb 16 09:08:14 CET 2022
Repository : https://github.com/latex3/latex2e
On branch : develop
Link : https://github.com/latex3/latex2e/commit/84a576a915da8d2d7955d7bb7ed7921ec3f67d53
>---------------------------------------------------------------
commit 84a576a915da8d2d7955d7bb7ed7921ec3f67d53
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date: Wed Feb 16 08:08:14 2022 +0000
\DeclareUnknownKeyHandler better without "s"
>---------------------------------------------------------------
84a576a915da8d2d7955d7bb7ed7921ec3f67d53
base/changes.txt | 1 +
base/ltkeys.dtx | 14 ++++++++------
2 files changed, 9 insertions(+), 6 deletions(-)
diff --git a/base/changes.txt b/base/changes.txt
index 927f8dae..549df4fe 100644
--- a/base/changes.txt
+++ b/base/changes.txt
@@ -11,6 +11,7 @@ are not part of the distribution.
* ltkeys.dtx:
Allow for active characters in module argument
+ \DeclareUnknownKeyHandler better than with the "s"
2022-02-15 Joseph Wright <Joseph.Wright at latex-project.org>
diff --git a/base/ltkeys.dtx b/base/ltkeys.dtx
index 009000ce..8bb0ebe1 100644
--- a/base/ltkeys.dtx
+++ b/base/ltkeys.dtx
@@ -33,7 +33,7 @@
%<*driver>
% \fi
\ProvidesFile{ltkeys.dtx}
- [2022/02/15 v1.0d LaTeX Kernel (Kevyal options)]
+ [2022/02/16 v1.0e LaTeX Kernel (Kevyal options)]
% \iffalse
\documentclass{l3doc}
\GetFileInfo{ltkeys.dtx}
@@ -103,11 +103,11 @@
% \cs{ProcessKeyOptions}/\cs{ProcessKeyPackageOptions} act as package options.
% \end{function}
%
-% \begin{function}{\DeclareUnknownKeysHandler}
+% \begin{function}{\DeclareUnknownKeyHandler}
% \begin{syntax}
-% \cs{DeclareUnknownKeysHandler} \oarg{family} \marg{code}
+% \cs{DeclareUnknownKeyHandler} \oarg{family} \marg{code}
% \end{syntax}
-% The function \cs{DeclareUnknownKeysHandler} may be used to define
+% The function \cs{DeclareUnknownKeyHandler} may be used to define
% the behavior when an undefined key is encountered. The \meta{code}
% will receive the unknown key name as |#1| and the value as |#2|.
% These can then be processed as appropriate, e.g.~by forwarding
@@ -406,11 +406,13 @@
% \end{macrocode}
% \end{macro}
%
-% \begin{macro}{\DeclareUnknownKeysHandler}
+% \begin{macro}{\DeclareUnknownKeyHandler}
% \changes{v1.0c}{2022/02/15}{Added \cs{DeclareUnknownKeysHandler}}
% \changes{v1.0d}{2022/02/16}{Allow for active characters in module argument}
+% \changes{v1.0d}{2022/02/16}
+% {Rename \cs{DeclareUnknownKeysHandler} to \cs{DeclareUnknownKeyHandler}}
% \begin{macrocode}
-\NewDocumentCommand \DeclareUnknownKeysHandler { O { \@currname } +m }
+\NewDocumentCommand \DeclareUnknownKeyHandler { O { \@currname } +m }
{
\cs_set_protected:cpn { @@_unknown_handler_ #1 :nn } ##1##2 {#2}
\@@_options_expand_module:Nn \keys_define:nx {#1}
More information about the latex3-commits
mailing list.