[latex3-commits] [l3svn] branch master updated: More efficient initialisation of keys
noreply at latex-project.org
noreply at latex-project.org
Tue Sep 20 10:12:27 CEST 2016
This is an automated email from the git hooks/post-receive script.
joseph pushed a commit to branch master
in repository l3svn.
The following commit(s) were added to refs/heads/master by this push:
new 03e3255 More efficient initialisation of keys
03e3255 is described below
commit 03e32552e3646fbd3796186ad5dda1a7794e78bc
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date: Tue Sep 20 09:11:55 2016 +0100
More efficient initialisation of keys
As there's only one csname to look at, it's a bit silly to do
all of that complex set up.
---
l3kernel/l3keys.dtx | 11 ++---------
1 file changed, 2 insertions(+), 9 deletions(-)
diff --git a/l3kernel/l3keys.dtx b/l3kernel/l3keys.dtx
index a431db6..b818fee 100644
--- a/l3kernel/l3keys.dtx
+++ b/l3kernel/l3keys.dtx
@@ -1597,21 +1597,14 @@
% \end{macro}
%
% \begin{macro}[int]{\@@_initialise:n}
-% \begin{macro}[aux]{\@@_initialise:wn}
-% A set up for initialisation from which the key system requires that
-% the path is split up into a module and a key name. At this stage,
-% \cs{l_keys_path_tl} will contain \texttt{/} so a split is easy to do.
+% A set up for initialisation: just run the code if it exists.
% \begin{macrocode}
\cs_new_protected:Npn \@@_initialise:n #1
{
- \@@_ensure_exist:V \l_keys_path_tl
- \exp_after:wN \@@_initialise:wn \l_keys_path_tl \q_stop {#1}
+ \cs_if_exist_use:cT { \c_@@_code_root_tl \l_keys_path_tl } { {#1} }
}
-\cs_new_protected:Npn \@@_initialise:wn #1 / #2 \q_stop #3
- { \keys_set:nn {#1} { #2 = {#3} } }
% \end{macrocode}
% \end{macro}
-% \end{macro}
%
% \begin{macro}[int]{\@@_meta_make:n}
% \begin{macro}[int]{\@@_meta_make:nn}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the latex3-commits
mailing list