I was about to ask this question a few days ago, but at the time the site suggested this question to me and I thought that it is the same problem with mine. But now as PL2 releases, the problem in the addressed question is fixed yet mine remain, hence the question below.
Suppose that there is a package like the following:
\NeedsTeXFormat{LaTeX2e}[2022-06-01]
\RequirePackage{l3keys2e}
\ProvidesExplPackage
{testpackage}
{2022/06/20} {}
{A test package}
\keys_define:nn { testpackage }
{
, unknown .code:n = {}
}
\ProcessKeysOptions { testpackage }
\endinput
And the main document is like this:
\documentclass[11pt]{article}
\usepackage{testpackage}
\begin{document}
Text in case of empty.
\end{document}
Two days ago with 2022-06-01 PL1 one shall get
Unused global option(s):
[11pt,11pt].
Now with PL2 it is:
Unused global option(s):
[11pt].
However, in the previous releases, with unknown.code:n = {}, it is expected that there shouldn't be any warning here.
What is the problem here and how should one fix this?
Missing \begin{document}. – Jinwen Jun 22 '22 at 09:24l3keys2e), I discovered that the remaining warning in my document was caused byscontents, for which I'm not able to do much. Each package that usesl3keys2ecan lead to a replication of your class options in the warning message. – Jinwen Jun 22 '22 at 17:30