Skip to content

Commit

Permalink
Correct arg. test
Browse files Browse the repository at this point in the history
  • Loading branch information
josephwright committed Jan 12, 2025
1 parent 3bb02cb commit d643fda
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion base/changes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ to completeness or accuracy and it contains some references to files that are
not part of the distribution.
================================================================================

2025-01-04 Joseph Wright <[email protected]>
2025-01-12 Joseph Wright <[email protected]>
* ltclass.dtx
Suppress load-only warning for options given globally

Expand Down
6 changes: 3 additions & 3 deletions base/ltkeys.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
%<*driver>
% \fi
\ProvidesFile{ltkeys.dtx}
[2025/01/04 v1.0p LaTeX Kernel (Keyval options)]
[2025/01/12 v1.0p LaTeX Kernel (Keyval options)]
% \iffalse
\documentclass{l3doc}
\GetFileInfo{ltkeys.dtx}
Expand Down Expand Up @@ -576,7 +576,7 @@
% \begin{macro}{\@@_options_loaded:n}
% \begin{macro}{\@@_options_loaded:nn}
% \changes{v1.0l}{2022/10/20}{Correct an argument for a message}
% \changes{v1.0p}{2025-01-04}{Suppress load-only error for global options}
% \changes{v1.0p}{2025-01-12}{Suppress load-only error for global options}
% Indicates that the load-time options for a package have been processed:
% once this has happened, make them unavailable either with a warning or
% an error. We suppress the warning where the option is in the global list:
Expand All @@ -589,7 +589,7 @@
{
\clist_map_inline:Nn \l_@@_tmpa_tl
{
\clist_if_in:NnTF \l_@@_tmpb_tl {#1}
\clist_if_in:NnTF \l_@@_tmpb_tl {##1}
{ \keys_define:nn {#1} {##1 .code:n = } }
{
\keys_define:nn {#1}
Expand Down
5 changes: 4 additions & 1 deletion base/testfiles/github-1606.lvt
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
\begin{filecontents*}[overwrite]{testpackage.sty}
\ProvidesExplPackage{testpackage}{2025-02-04}{}{}
\keys_define:nn { testpackage }
{ testoption .code:n = { \def \testmacro { seen } } }
{
testoption .code:n = { \def \testmacro { seen } } ,
testoption .usage:n = { load }
}
\ProcessKeyOptions [ testpackage ]
\endinput
\end{filecontents*}
Expand Down

0 comments on commit d643fda

Please sign in to comment.