-
-
Notifications
You must be signed in to change notification settings - Fork 274
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Process global options once per package (#1625)
* Process global options once per package * Correct a typo * Add EOL * Add an additional test
- Loading branch information
1 parent
b8391f3
commit 87372f4
Showing
13 changed files
with
172 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,10 @@ to completeness or accuracy and it contains some references to files that are | |
not part of the distribution. | ||
================================================================================ | ||
|
||
2025-01-15 Joseph Wright <[email protected]> | ||
* ltkeys.dtx | ||
Parse global options only once per package (gh/1619) | ||
|
||
2025-01-11 Udi Fogiel <[email protected]> | ||
|
||
* ltluatex.dtx (subsubsection{Handlers}): | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
\begin{filecontents*}[overwrite]{testpackage.sty} | ||
\ProvidesExplPackage{testpackage}{2025-02-04}{}{} | ||
\keys_define:nn { testpackage } | ||
{ | ||
testoption .code:n = { \def \testmacro { seen } } , | ||
testoption .usage:n = load | ||
} | ||
\ProcessKeyOptions [ testpackage ] | ||
\endinput | ||
\end{filecontents*} | ||
|
||
\input{test2e} | ||
|
||
\documentclass[testoption]{article} | ||
|
||
\START | ||
|
||
\usepackage{testpackage} | ||
\usepackage{testpackage} | ||
|
||
\END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
This is a generated file for the LaTeX2e validation system. | ||
Don't change this file in any respect. | ||
(testpackage.sty | ||
Package: testpackage ....-..-.. | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
\begin{filecontents*}[overwrite]{testpackage.sty} | ||
\ProvidesExplPackage{testpackage}{2025-02-04}{}{} | ||
\keys_define:nn { testpackage } | ||
{ | ||
testoption .code:n = { \def \testmacro { seen } } , | ||
testoption .usage:n = load | ||
} | ||
\ProcessKeyOptions [ testpackage ] | ||
\endinput | ||
\end{filecontents*} | ||
|
||
\input{test2e} | ||
|
||
\documentclass[testoption]{article} | ||
|
||
\START | ||
|
||
\usepackage[testoption = false]{testpackage} | ||
\usepackage[testoption = true]{testpackage} | ||
|
||
\END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
This is a generated file for the LaTeX2e validation system. | ||
Don't change this file in any respect. | ||
(testpackage.sty | ||
Package: testpackage ....-..-.. | ||
) | ||
LaTeX Warning: Package "testpackage" has already been loaded: ignoring load-time option "testoption". |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
\begin{filecontents*}[overwrite]{testpackage.sty} | ||
\ProvidesExplPackage{testpackage}{2025-02-04}{}{} | ||
\keys_define:nn { testpackage } | ||
{ | ||
testoption .code:n = { \def \testmacro { seen } } , | ||
testoption .usage:n = load | ||
} | ||
\ProcessKeyOptions [ testpackage ] | ||
\endinput | ||
\end{filecontents*} | ||
|
||
\input{test2e} | ||
|
||
\documentclass[testoption = true]{article} | ||
|
||
\START | ||
|
||
\usepackage{testpackage} | ||
\usepackage{testpackage} | ||
\usepackage[testoption = true]{testpackage} | ||
\usepackage[testoption = false]{testpackage} | ||
|
||
\END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
This is a generated file for the LaTeX2e validation system. | ||
Don't change this file in any respect. | ||
(testpackage.sty | ||
Package: testpackage ....-..-.. | ||
) | ||
LaTeX Warning: Package "testpackage" has already been loaded: ignoring load-time option "testoption". | ||
LaTeX Warning: Package "testpackage" has already been loaded: ignoring load-time option "testoption". |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
\begin{filecontents*}[overwrite]{testpackage.sty} | ||
\ProvidesExplPackage{testpackage}{2025-02-04}{}{} | ||
\keys_define:nn { testpackage } | ||
{ | ||
testoption .code:n = { \def \testmacro { seen } } , | ||
testoption .usage:n = load | ||
} | ||
\ProcessKeyOptions [ testpackage ] | ||
\endinput | ||
\end{filecontents*} | ||
|
||
\input{test2e} | ||
|
||
\documentclass[testoption = false]{article} | ||
|
||
\START | ||
|
||
\usepackage{testpackage} | ||
\usepackage{testpackage} | ||
\usepackage[testoption = true]{testpackage} | ||
\usepackage[testoption = false]{testpackage} | ||
|
||
\END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
This is a generated file for the LaTeX2e validation system. | ||
Don't change this file in any respect. | ||
(testpackage.sty | ||
Package: testpackage ....-..-.. | ||
) | ||
LaTeX Warning: Package "testpackage" has already been loaded: ignoring load-time option "testoption". | ||
LaTeX Warning: Package "testpackage" has already been loaded: ignoring load-time option "testoption". |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
\begin{filecontents*}[overwrite]{testpackage.sty} | ||
\ProvidesExplPackage{testpackage}{2025-02-04}{}{} | ||
\keys_define:nn { testpackage } | ||
{ | ||
testoption .code:n = { \def \testmacro { #1 } } , | ||
testoption .usage:n = load | ||
} | ||
\ProcessKeyOptions [ testpackage ] | ||
\endinput | ||
\end{filecontents*} | ||
|
||
\input{test2e} | ||
|
||
\documentclass[testoption = false]{article} | ||
|
||
\START | ||
|
||
\usepackage[testoption = true]{testpackage} | ||
\usepackage[testoption = ERROR]{testpackage} | ||
|
||
\show\testmacro | ||
|
||
\END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
This is a generated file for the LaTeX2e validation system. | ||
Don't change this file in any respect. | ||
(testpackage.sty | ||
Package: testpackage ....-..-.. | ||
) | ||
LaTeX Warning: Package "testpackage" has already been loaded: ignoring load-time option "testoption". | ||
> \testmacro=macro: | ||
->true. | ||
l. ...\show\testmacro |