[latex3-commits] [l3svn] r6789 - Use \seq_get_right:NN instead of some \seq_item:Nn
noreply at latex-project.org
noreply at latex-project.org
Wed Dec 7 04:21:14 CET 2016
Author: bruno
Date: 2016-12-07 04:21:14 +0100 (Wed, 07 Dec 2016)
New Revision: 6789
Modified:
trunk/l3experimental/l3sort/l3sort.dtx
trunk/l3experimental/xgalley/l3galley.dtx
Log:
Use \seq_get_right:NN instead of some \seq_item:Nn
Modified: trunk/l3experimental/l3sort/l3sort.dtx
===================================================================
--- trunk/l3experimental/l3sort/l3sort.dtx 2016-12-06 19:03:30 UTC (rev 6788)
+++ trunk/l3experimental/l3sort/l3sort.dtx 2016-12-07 03:21:14 UTC (rev 6789)
@@ -324,7 +324,7 @@
% the scope of the assignment. Mapping through the token
% list is done with \cs{tl_map_inline:Nn}, and producing
% the token list is very similar to sequences, removing
-% \cs{seq_item:Nn}.
+% \cs{__seq_item:n}.
% \begin{macrocode}
\cs_new_protected:Npn \tl_sort:Nn
{
Modified: trunk/l3experimental/xgalley/l3galley.dtx
===================================================================
--- trunk/l3experimental/xgalley/l3galley.dtx 2016-12-06 19:03:30 UTC (rev 6788)
+++ trunk/l3experimental/xgalley/l3galley.dtx 2016-12-07 03:21:14 UTC (rev 6789)
@@ -1949,11 +1949,8 @@
{
\seq_gset_eq:Nc \g_@@_tmpa_seq { g_@@_cutout_ #1 _seq }
\seq_gset_eq:Nc \g_@@_tmpb_seq { l_@@_parshape_ #1 _indent_seq }
- \tl_set:Nx \l_@@_tmp_tl
- {
- \seq_item:Nn \g_@@_tmpb_seq
- { \seq_count:N \g_@@_tmpb_seq }
- }
+ \seq_get_right:NNF \g_@@_tmpb_seq \l_@@_tmp_tl
+ { \tl_clear:N \l_@@_tmp_tl }
\tl_if_empty:NT \l_@@_tmp_tl
{ \tl_set:Nn \l_@@_tmp_tl { 0pt } }
\int_set:Nn \l_@@_tmp_int
@@ -1978,8 +1975,8 @@
% \begin{macrocode}
\cs_new_protected:Npn \@@_parshape_set_cutouts:N #1
{
- \tl_set:Nx \l_@@_tmp_tl
- { \seq_item:Nn #1 { \seq_count:N #1 } }
+ \seq_get_right:NNF #1 \l_@@_tmp_tl
+ { \tl_clear:N \l_@@_tmp_tl }
\tl_if_empty:NT \l_@@_tmp_tl
{ \tl_set:Nn \l_@@_tmp_tl { 0pt } }
\prg_replicate:nn { \int_abs:n \l_@@_tmp_int }
More information about the latex3-commits
mailing list