[latex3-commits] [l3svn] branch master updated: One 'abuse' of \tl_to_str:n removed

noreply at latex-project.org noreply at latex-project.org
Sat Aug 22 10:52:28 CEST 2015


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  6e5d44b   One 'abuse' of \tl_to_str:n removed
6e5d44b is described below

commit 6e5d44bd3df915eb2142a619eaf8dcb3c81207ab
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Sat Aug 22 09:49:34 2015 +0100

    One 'abuse' of \tl_to_str:n removed
    
    Here we are using the semantics of the primitive so should use the
    correct name.
---
 l3kernel/l3tl.dtx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/l3kernel/l3tl.dtx b/l3kernel/l3tl.dtx
index fabb8b1..f3399e0 100644
--- a/l3kernel/l3tl.dtx
+++ b/l3kernel/l3tl.dtx
@@ -2002,13 +2002,13 @@
 %   The test for emptiness is based on \cs{tl_if_empty:n(TF)}, but
 %   the expansion is hard-coded for efficiency, as this auxiliary
 %   function is used in many places.
-%   Note that this works because \cs{tl_to_str:n} expands tokens
+%   Note that this works because \cs{etex_detokenize:D} expands tokens
 %   that follow until reading a catcode $1$ (begin-group) token.
 %    \begin{macrocode}
 \cs_new:Npn \@@_if_empty_return:o #1
   {
     \exp_after:wN \if_meaning:w \exp_after:wN \q_nil
-      \tl_to_str:n \exp_after:wN {#1} \q_nil
+      \etex_detokenize:D \exp_after:wN {#1} \q_nil
       \prg_return_true:
     \else:
       \prg_return_false:

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the latex3-commits mailing list