summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/l3kernel/l3keys.dtx
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2022-01-22 03:01:16 +0000
committerNorbert Preining <norbert@preining.info>2022-01-22 03:01:16 +0000
commit26bfc07f2b7829213356de43cf5b81c3ba99e338 (patch)
treeefb3037df2c42c45c904ad131334e8fc626cea19 /macros/latex/contrib/l3kernel/l3keys.dtx
parent5d5f239204f5c0d1f7573c9ebc64b5ad1ae75b49 (diff)
CTAN sync 202201220301
Diffstat (limited to 'macros/latex/contrib/l3kernel/l3keys.dtx')
-rw-r--r--macros/latex/contrib/l3kernel/l3keys.dtx18
1 files changed, 11 insertions, 7 deletions
diff --git a/macros/latex/contrib/l3kernel/l3keys.dtx b/macros/latex/contrib/l3kernel/l3keys.dtx
index dab5a8f423..b0222b657b 100644
--- a/macros/latex/contrib/l3kernel/l3keys.dtx
+++ b/macros/latex/contrib/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: