[latex3-commits] [git/LaTeX3-latex3-latex2e] develop: fix error message for load-only keys (42bb123b)
Frank Mittelbach
frank.mittelbach at latex-project.org
Sun Aug 21 21:07:03 CEST 2022
Repository : https://github.com/latex3/latex2e
On branch : develop
Link : https://github.com/latex3/latex2e/commit/42bb123bab1ee44ba0962f3985a97e250af2bb3b
>---------------------------------------------------------------
commit 42bb123bab1ee44ba0962f3985a97e250af2bb3b
Author: Frank Mittelbach <frank.mittelbach at latex-project.org>
Date: Sun Aug 21 21:07:03 2022 +0200
fix error message for load-only keys
>---------------------------------------------------------------
42bb123bab1ee44ba0962f3985a97e250af2bb3b
base/changes.txt | 5 +++++
base/ltkeys.dtx | 6 ++++--
base/testfiles/github-0710.tlg | 4 ++--
3 files changed, 11 insertions(+), 4 deletions(-)
diff --git a/base/changes.txt b/base/changes.txt
index e02fdbac..91f726b0 100644
--- a/base/changes.txt
+++ b/base/changes.txt
@@ -6,6 +6,11 @@ completeness or accuracy and it contains some references to files that
are not part of the distribution.
================================================================================
+2022-08-21 Frank Mittelbach <Frank.Mittelbach at latex-project.org>
+
+ * ltkeys.dtx (subsection{Option usage scope}):
+ Correct error message text for load-only keys.
+
2022-08-13 Marcel Krüger <Marcel.Krueger at latex-project.org>
* ltluatex.dtx:
diff --git a/base/ltkeys.dtx b/base/ltkeys.dtx
index f74b4f4d..88f9315f 100644
--- a/base/ltkeys.dtx
+++ b/base/ltkeys.dtx
@@ -33,7 +33,7 @@
%<*driver>
% \fi
\ProvidesFile{ltkeys.dtx}
- [2022/07/27 v1.0j LaTeX Kernel (Keyval options)]
+ [2022/08/21 v1.0k LaTeX Kernel (Keyval options)]
% \iffalse
\documentclass{l3doc}
\GetFileInfo{ltkeys.dtx}
@@ -514,10 +514,12 @@
% \end{macrocode}
% \changes{v1.0j}{2022/07/23}
% {Output `public' package name in messages}
+% \changes{v1.0k}{2022/08/21}
+% {Correct error message}
% \begin{macrocode}
\msg_new:nnnn { keys } { load-only }
{
- Key~"#2"~may~only~be~used~in~the~during~loading~of~package~
+ Key~"#2"~may~only~be~used~during~loading~of~package~
"\msg_module_name:n {#1}".
}
{
diff --git a/base/testfiles/github-0710.tlg b/base/testfiles/github-0710.tlg
index 58c2c762..b383404f 100644
--- a/base/testfiles/github-0710.tlg
+++ b/base/testfiles/github-0710.tlg
@@ -33,8 +33,8 @@ LaTeX3 Warning: Package "mypkg" has already been loaded: ignoring load-time
\mypkgtest ...my at A :\my at B :\my at C :\my at D }\show \x
\endgroup
l. ...\mypkgtest
-! LaTeX3 Error: Key "load-option-A" may only be used in the during loading of
-(LaTeX3) package "mypkg".
+! LaTeX3 Error: Key "load-option-A" may only be used during loading of package
+(LaTeX3) "mypkg".
For immediate help type H <return>.
...
l. ...\SetKeys[mypkg]{load-option-A = 666}
More information about the latex3-commits
mailing list.