summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/l3kernel/l3keys.dtx
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2022-01-21 22:49:34 +0000
committerKarl Berry <karl@freefriends.org>2022-01-21 22:49:34 +0000
commit87aba59c84e17b383ab231357b7f9e75330738a4 (patch)
tree26cc1381a3b5189f541326c112e932b144030a91 /Master/texmf-dist/source/latex/l3kernel/l3keys.dtx
parent7e5007eab3107fa4ad6a70beb002fe0bb541ef52 (diff)
l3kernel (21jan22)
git-svn-id: svn://tug.org/texlive/trunk@61685 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/l3kernel/l3keys.dtx')
-rw-r--r--Master/texmf-dist/source/latex/l3kernel/l3keys.dtx18
1 files changed, 11 insertions, 7 deletions
diff --git a/Master/texmf-dist/source/latex/l3kernel/l3keys.dtx b/Master/texmf-dist/source/latex/l3kernel/l3keys.dtx
index dab5a8f423d..b0222b657b7 100644
--- a/Master/texmf-dist/source/latex/l3kernel/l3keys.dtx
+++ b/Master/texmf-dist/source/latex/l3kernel/l3keys.dtx
@@ -43,7 +43,7 @@
% }^^A
% }
%
-% \date{Released 2022-01-12}
+% \date{Released 2022-01-21}
%
% \maketitle
%
@@ -358,7 +358,7 @@
% require a value at point-of-use unless a default is set.
% \end{function}
%
-% \begin{function}[updated = 2021-11-22]
+% \begin{function}[updated = 2022-01-15]
% {
% .legacy_if_set:n, .legacy_if_gset:n,
% .legacy_if_set_inverse:n, .legacy_if_gset_inverse:n
@@ -369,8 +369,7 @@
% Defines \meta{key} to set legacy \cs{if} \meta{switch} to \meta{value}
% (which must be either \enquote{\texttt{true}} or \enquote{\texttt{false}}).
% The \meta{switch} is the name of the switch \emph{without the leading
-% \cs{if}}. Note that in contrast to \pkg{expl3} variables, the \meta{switch}
-% will \emph{not} be created if it does not exist.
+% \cs{if}}.
%
% The \texttt{inverse} versions will set the \meta{switch} to the logical
% opposite of the \meta{value}.
@@ -2063,6 +2062,11 @@
\l_keys_key_str
}
\@@_default_set:n { true }
+ \cs_if_exist:cF { if#1 }
+ {
+ \cs:w newif \exp_after:wN \cs_end:
+ \cs:w if#1 \cs_end:
+ }
}
% \end{macrocode}
% \end{macro}
@@ -2670,9 +2674,9 @@
\@@_tmp:nn
}
\@@_tmp:nn
- { legacy_if:n } { if }
- { tl_set:N } { store }
- { usage:n } { usage }
+ { legacy_if_set:n } { if }
+ { tl_set:N } { store }
+ { usage:n } { usage }
{ \q_recursion_tail } { }
\q_recursion_stop
\group_end: