[latex3-commits] [git/LaTeX3-latex3-latex3] master: Ensure that \use_x:n takes a 'normal' n-type argument (cdea48e)

Joseph Wright joseph.wright at morningstar2.co.uk
Fri Apr 20 11:57:57 CEST 2018


Repository : https://github.com/latex3/latex3
On branch  : master
Link       : https://github.com/latex3/latex3/commit/cdea48e211973c734a00ff2b34ce0a8d329c4f8a

>---------------------------------------------------------------

commit cdea48e211973c734a00ff2b34ce0a8d329c4f8a
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Fri Apr 20 10:57:57 2018 +0100

    Ensure that \use_x:n takes a 'normal' n-type argument


>---------------------------------------------------------------

cdea48e211973c734a00ff2b34ce0a8d329c4f8a
 l3kernel/l3basics.dtx     |   13 +++++++++++--
 l3kernel/l3candidates.dtx |    5 ++---
 2 files changed, 13 insertions(+), 5 deletions(-)

diff --git a/l3kernel/l3basics.dtx b/l3kernel/l3basics.dtx
index 6afc2ec..9883165 100644
--- a/l3kernel/l3basics.dtx
+++ b/l3kernel/l3basics.dtx
@@ -1443,14 +1443,23 @@
 %    \end{macrocode}
 % \end{macro}
 %
-% \begin{macro}[EXP]{\use_x:n}
+%    \begin{macrocode}
+%<@@=use>
+%    \end{macrocode}
+%
+% \begin{macro}[EXP]{\use_x:n, \@@_x:n}
 %   A candidate, but needed early as it links to string comparisons.
 %   Currently \LuaTeX-only.
 %    \begin{macrocode}
-\tex_let:D \use_x:n \luatex_expanded:D
+\tex_let:D \@@_x:n \luatex_expanded:D
+\cs_set:Npn \use_x:n #1 { \@@_x:n {#1} }
 %    \end{macrocode}
 % \end{macro}
 %
+%    \begin{macrocode}
+%<@@=exp>
+%    \end{macrocode}
+%
 % \begin{macro}[EXP]{\use:n, \use:nn, \use:nnn, \use:nnnn}
 %    These macros grab their arguments and returns them back to the input
 %    (with outer braces removed).
diff --git a/l3kernel/l3candidates.dtx b/l3kernel/l3candidates.dtx
index 565a34e..c504102 100644
--- a/l3kernel/l3candidates.dtx
+++ b/l3kernel/l3candidates.dtx
@@ -144,9 +144,8 @@
 %   \emph{but} the function remains fully expandable, and parameter
 %   character (usually~|#|) need not be doubled.
 %   \begin{texnote}
-%     \cs{use_x:n} the primitive \tn{expanded}:
-%     when \LuaTeX{} is in us it requires a single expansion to
-%     operate.
+%     \cs{use_x:n} the a wrapper around the primitive \tn{expanded}:
+%     it requires two expansions to complete its action.
 %   \end{texnote}
 % \end{function}
 %





More information about the latex3-commits mailing list