[latex3-commits] [git/LaTeX3-latex3-latex3] master: Efficiency savings (b36d51e3a)

Joseph Wright joseph.wright at morningstar2.co.uk
Mon Feb 10 19:46:48 CET 2020


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

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

commit b36d51e3a71b1c3ea215ad40c36a9cec8fcdeab9
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Mon Feb 10 18:46:48 2020 +0000

    Efficiency savings


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

b36d51e3a71b1c3ea215ad40c36a9cec8fcdeab9
 l3kernel/l3text.dtx | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/l3kernel/l3text.dtx b/l3kernel/l3text.dtx
index 9878b1fc9..cdf1b477e 100644
--- a/l3kernel/l3text.dtx
+++ b/l3kernel/l3text.dtx
@@ -530,7 +530,7 @@
 % \begin{macro}[EXP]{\@@_expand_letterlike:NN}
 % \begin{macro}[EXP]{\@@_expand_cs:N, \@@_expand_encoding:N}
 % \begin{macro}[EXP]{\@@_expand_encoding_escape:N}
-% \begin{macro}[EXP]{\@@_expand_encoding_escape:Nn}
+% \begin{macro}[EXP]{\@@_expand_encoding_escape:NN}
 % \begin{macro}[EXP]{\@@_expand_protect:N}
 % \begin{macro}[EXP]{\@@_expand_protect:nN}
 % \begin{macro}[EXP]{\@@_expand_protect:Nw}
@@ -879,15 +879,18 @@
 \cs_new:Npn \@@_expand_encoding:N #1
   {
     \cs_if_eq:NNTF #1 \@current at cmd
-      { \@@_expand_loop:w \@@_expand_encoding_escape:N }
+      { \exp_after:wN \@@_expand_loop:w \@@_expand_encoding_escape:N }
       {
         \cs_if_eq:NNTF #1 \@changed at cmd
-          { \@@_expand_loop:w \@@_expand_encoding_escape:Nn }
+          {
+            \exp_after:wN \@@_expand_loop:w
+              \@@_expand_encoding_escape:NN
+          }
           { \@@_expand_replace:N #1 }
       }
   }
 \cs_new:Npn \@@_expand_encoding_escape:N #1 { \exp_not:n {#1} }
-\cs_new:Npn \@@_expand_encoding_escape:Nn #1#2 { \exp_not:n {#1} }
+\cs_new:Npn \@@_expand_encoding_escape:NN #1#2 { \exp_not:n {#1} }
 %    \end{macrocode}
 %   See if there is a dedicated replacement, and if there is, insert it.
 %    \begin{macrocode}





More information about the latex3-commits mailing list.