[latex3-commits] [latex3/latex3] main: Update mark-ups and comment for `\__keys_property_find:n` and aux fns (079481eaf)
github at latex-project.org
github at latex-project.org
Sun Dec 17 11:36:21 CET 2023
Repository : https://github.com/latex3/latex3
On branch : main
Link : https://github.com/latex3/latex3/commit/079481eafc57c1c85b04995af993ff6a0681676c
>---------------------------------------------------------------
commit 079481eafc57c1c85b04995af993ff6a0681676c
Author: Yukai Chou <muzimuzhi at gmail.com>
Date: Sat Dec 16 21:13:47 2023 +0800
Update mark-ups and comment for `\__keys_property_find:n` and aux fns
>---------------------------------------------------------------
079481eafc57c1c85b04995af993ff6a0681676c
l3kernel/l3keys.dtx | 16 ++++++++++------
1 file changed, 10 insertions(+), 6 deletions(-)
diff --git a/l3kernel/l3keys.dtx b/l3kernel/l3keys.dtx
index 136cc1e9c..2b9652c7d 100644
--- a/l3kernel/l3keys.dtx
+++ b/l3kernel/l3keys.dtx
@@ -1813,19 +1813,22 @@
% \end{macro}
%
% \begin{macro}{\@@_property_find:n}
-% \begin{macro}
+% \begin{macro}[EXP]
% {
% \@@_property_find_auxi:w ,
-% \@@_property_find_auxii:w ,
% \@@_property_find_auxiii:w ,
% \@@_property_find_auxiv:w
% }
+% \begin{macro}
+% {
+% \@@_property_find_auxii:w ,
+% \@@_property_find_err:w
+% }
% Searching for a property means finding the last |.| in the input,
% and storing the text before and after it. Everything is first turned into
-% strings, so there is no problem using an \texttt{e}-type expansion
-% in aux functions. \cs{cs_set_nopar:Npe} instead of \cs{tl_set:Ne} or
-% \cs{str_set:Ne} is used to gain some speed.
-% Space trimming on key path is done only once, after the last |.| is found.
+% strings, so there is no problem using \cs{cs_set_nopar:Npe} instead of
+% \cs{str_set:Ne} to set \cs{l_keys_path_str}. To gain further speed, brace
+% tricks are used and \cs{@@_property_find_auxiv:w} is defined as expandable.
% Since spaces will already be trimmed from the module we can omit it from the
% argument to \cs{@@_trim_spaces:n}.
% \begin{macrocode}
@@ -1873,6 +1876,7 @@
% \end{macrocode}
% \end{macro}
% \end{macro}
+% \end{macro}
%
% \begin{macro}{\@@_define_code:n}
% \begin{macro}[EXP]{\@@_define_code:w}
More information about the latex3-commits
mailing list.