Skip to content

Commit

Permalink
Suppress "load-only" warning for global options
Browse files Browse the repository at this point in the history
  • Loading branch information
josephwright committed Jan 3, 2025
1 parent 7267000 commit 663dce7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
4 changes: 4 additions & 0 deletions base/changes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ to completeness or accuracy and it contains some references to files that are
not part of the distribution.
================================================================================

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

2025-01-03 Frank Mittelbach <[email protected]>

* lthooks.dtx (subsubsection{Updating code for hooks}):
Expand Down
13 changes: 9 additions & 4 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}
[2024/06/20 v1.0o LaTeX Kernel (Keyval options)]
[2025/01/03 v1.0p LaTeX Kernel (Keyval options)]
% \iffalse
\documentclass{l3doc}
\GetFileInfo{ltkeys.dtx}
Expand Down Expand Up @@ -576,6 +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-03}{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.
Expand All @@ -586,10 +587,14 @@
{
\clist_map_inline:Nn \l_@@_tmpa_tl
{
\keys_define:nn {#1}
\clist_if_in:NnTF \@classoptionslist {#1}
{ \keys_define:nn {#1} {##1 .code:n } }
{
##1 .code:n =
\@@_options_loaded:nn {#1} {##1}
\keys_define:nn {#1}
{
##1 .code:n =
\@@_options_loaded:nn {#1} {##1}
}
}
}
}
Expand Down

0 comments on commit 663dce7

Please sign in to comment.