summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/l3kernel/l3tl.dtx
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2012-02-28 00:40:51 +0000
committerKarl Berry <karl@freefriends.org>2012-02-28 00:40:51 +0000
commit29c459636115f7de4ae9a8681927b52a1e896805 (patch)
tree5200a1da0c7a7bae64d8c07c48df4a5daf30323e /Master/texmf-dist/source/latex/l3kernel/l3tl.dtx
parente20ea4bdd670e0418363a2a38a54b422a4d83231 (diff)
l3kernel 3471 (26feb12)
git-svn-id: svn://tug.org/texlive/trunk@25525 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/l3kernel/l3tl.dtx')
-rw-r--r--Master/texmf-dist/source/latex/l3kernel/l3tl.dtx52
1 files changed, 11 insertions, 41 deletions
diff --git a/Master/texmf-dist/source/latex/l3kernel/l3tl.dtx b/Master/texmf-dist/source/latex/l3kernel/l3tl.dtx
index f0279ff6bfc..9fa0a297d51 100644
--- a/Master/texmf-dist/source/latex/l3kernel/l3tl.dtx
+++ b/Master/texmf-dist/source/latex/l3kernel/l3tl.dtx
@@ -35,7 +35,7 @@
%
%<*driver|package>
\RequirePackage{l3names}
-\GetIdInfo$Id: l3tl.dtx 3316 2012-02-06 12:24:43Z bruno $
+\GetIdInfo$Id: l3tl.dtx 3460 2012-02-26 12:16:41Z will $
{L3 Experimental token lists}
%</driver|package>
%<*driver>
@@ -637,8 +637,8 @@
% \cs{tl_reverse_items:n} \Arg{token list}
% \end{syntax}
% Reverses the order of the \meta{items} stored in \meta{tl~var},
-% so that \Arg{item1}\Arg{item2}\Arg{item3} \ldots \Arg{item$_n$}
-% becomes \Arg{item$_n$} \ldots{} \Arg{item3}\Arg{item2}\Arg{item1}.
+% so that \Arg{item_1}\Arg{item_2}\Arg{item_3} \ldots \Arg{item$_n$}
+% becomes \Arg{item$_n$} \ldots{} \Arg{item_3}\Arg{item_2}\Arg{item_1}.
% This process will remove any unprotected space within the
% \meta{token list}. Braced token groups are copied without
% reversing the order of tokens, and keep the outer set of braces.
@@ -686,8 +686,8 @@
% Functions which deal with either only the very first token of a
% token list or everything except the first token.
%
-% \begin{function}[updated = 2012-01-08, EXP]
-% {\tl_head:n, \tl_head:V, \tl_head:v, \tl_head:f}
+% \begin{function}[updated = 2012-02-08, EXP]
+% {\tl_head:N, \tl_head:n, \tl_head:V, \tl_head:v, \tl_head:f}
% \begin{syntax}
% \cs{tl_head:n} \Arg{tokens}
% \end{syntax}
@@ -727,8 +727,8 @@
% is not critical.
% \end{function}
%
-% \begin{function}[updated = 2012-01-08, EXP]
-% {\tl_tail:n, \tl_tail:V, \tl_tail:v, \tl_tail:f}
+% \begin{function}[updated = 2012-02-08, EXP]
+% {\tl_tail:N, \tl_tail:n, \tl_tail:V, \tl_tail:v, \tl_tail:f}
% \begin{syntax}
% \cs{tl_tail:n} \Arg{tokens}
% \end{syntax}
@@ -1016,17 +1016,6 @@
% \cs{tl_act_...} functions.
% \end{variable}
%
-% \begin{function}[added = 2012-01-25]{\tl_to_str_active_safe:Nx}
-% \begin{syntax}
-% \cs{tl_to_str_active_safe:Nx} \meta{tl var} \Arg{tokens}
-% \end{syntax}
-% Exhaustively-expands the \meta{tokens} with the exception of any
-% category \meta{active} (catcode~$12$) tokens, which are not expanded. The
-% resulting \meta{expanded tokens} are then converted to a string as
-% described for \cs{tl_to_str:n}. The list of \meta{active} tokens is taken
-% from \cs{l_char_active_seq}.
-% \end{function}
-%
% \end{documentation}
%
% \begin{implementation}
@@ -1943,9 +1932,9 @@
%
% \subsection{The first token from a token list}
%
-% \begin{macro}{\tl_head:n, \tl_head:V, \tl_head:v, \tl_head:f}
+% \begin{macro}{\tl_head:N, \tl_head:n, \tl_head:V, \tl_head:v, \tl_head:f}
% \begin{macro}{\tl_head:w}
-% \begin{macro}{\tl_tail:n, \tl_tail:V, \tl_tail:v, \tl_tail:f}
+% \begin{macro}{\tl_tail:N, \tl_tail:n, \tl_tail:V, \tl_tail:v, \tl_tail:f}
% \begin{macro}{\tl_tail:w}
% These functions pick up either the head or the tail of a list. The
% empty brace groups in \cs{tl_head:n} and \cs{tl_tail:n} ensure that
@@ -1959,7 +1948,9 @@
\cs_new:Npn \tl_tail:n #1
{ \etex_unexpanded:D \tl_tail_aux:w #1 \q_mark { } \q_mark \q_stop }
\cs_new:Npn \tl_tail_aux:w #1 #2 \q_mark #3 \q_stop { {#2} }
+\cs_new_nopar:Npn \tl_head:N { \exp_args:No \tl_head:n }
\cs_generate_variant:Nn \tl_head:n { V , v , f }
+\cs_new_nopar:Npn \tl_tail:N { \exp_args:No \tl_tail:n }
\cs_generate_variant:Nn \tl_tail:n { V , v , f }
% \end{macrocode}
% \end{macro}
@@ -2193,27 +2184,6 @@
% \end{macro}
% \end{macro}
%
-% \subsection{Specialist functions for kernel use}
-%
-% \begin{macro}[int]{\tl_to_str_active_safe:Nx}
-% For converting a token list to a string where active characters are treated
-% as strings from the start. This is needed by the file-loading modules.
-% \begin{macrocode}
-\cs_new_protected:Npn \tl_to_str_active_safe:Nx #1#2
- {
- \group_begin:
- \seq_map_inline:Nn \l_char_active_seq
- { \cs_set_nopar:Npx ##1 { \token_to_str:N ##1 } }
- \use:x
- {
- \group_end:
- \tl_set:Nn \exp_not:N #1 {#2}
- }
- \tl_set:Nx #1 { \tl_to_str:N #1 }
- }
-% \end{macrocode}
-%\end{macro}
-%
% \subsection{Viewing token lists}
%
% \begin{macro}{\tl_show:N, \tl_show:c}