[latex3-commits] [git/LaTeX3-latex3-latex3] master: \box_use_drop:N where internal boxes can safely be 'zapped' (920b262)

Joseph Wright joseph.wright at morningstar2.co.uk
Wed Jan 23 12:04:27 CET 2019


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

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

commit 920b262227a308c8eae176b93a804f37bd641e83
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Wed Jan 23 11:04:27 2019 +0000

    \box_use_drop:N where internal boxes can safely be 'zapped'
    
    These are always set at the current  group level.


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

920b262227a308c8eae176b93a804f37bd641e83
 l3kernel/l3box.dtx        |    2 +-
 l3kernel/l3candidates.dtx |   18 +++++++++---------
 2 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/l3kernel/l3box.dtx b/l3kernel/l3box.dtx
index 5d13401..04b6585 100644
--- a/l3kernel/l3box.dtx
+++ b/l3kernel/l3box.dtx
@@ -1760,7 +1760,7 @@
 %   content of the box is moved such that the reference point of the
 %   rotated box is in the same place as the original.
 %    \begin{macrocode}
-    \hbox_set:Nn \l_@@_internal_box { \box_use:N #1 }
+    \hbox_set:Nn \l_@@_internal_box { \box_use_drop:N #1 }
     \hbox_set:Nn \l_@@_internal_box
       {
         \tex_kern:D -\l_@@_left_new_dim
diff --git a/l3kernel/l3candidates.dtx b/l3kernel/l3candidates.dtx
index 2114431..4eb74c1 100644
--- a/l3kernel/l3candidates.dtx
+++ b/l3kernel/l3candidates.dtx
@@ -1522,7 +1522,7 @@
         \hbox_set:Nn \l_@@_internal_box
           {
             \box_move_down:nn \c_zero_dim
-              { \box_use:N \l_@@_internal_box }
+              { \box_use_drop:N \l_@@_internal_box }
           }
         \box_set_dp:Nn \l_@@_internal_box { \box_dp:N #1 - (#3) }
       }
@@ -1530,7 +1530,7 @@
         \hbox_set:Nn \l_@@_internal_box
           {
             \box_move_down:nn { (#3) - \box_dp:N #1 }
-              { \box_use:N \l_@@_internal_box }
+              { \box_use_drop:N \l_@@_internal_box }
           }
         \box_set_dp:Nn \l_@@_internal_box \c_zero_dim
       }
@@ -1542,7 +1542,7 @@
         \hbox_set:Nn \l_@@_internal_box
           {
             \box_move_up:nn \c_zero_dim
-              { \box_use:N \l_@@_internal_box }
+              { \box_use_drop:N \l_@@_internal_box }
           }
         \box_set_ht:Nn \l_@@_internal_box
           { \box_ht:N \l_@@_internal_box - (#5) }
@@ -1551,7 +1551,7 @@
         \hbox_set:Nn \l_@@_internal_box
           {
             \box_move_up:nn { (#5) - \box_ht:N \l_@@_internal_box }
-              { \box_use:N \l_@@_internal_box }
+              { \box_use_drop:N \l_@@_internal_box }
           }
         \box_set_ht:Nn \l_@@_internal_box \c_zero_dim
       }
@@ -1579,13 +1579,13 @@
         \hbox_set:Nn \l_@@_internal_box
           {
             \box_move_down:nn \c_zero_dim
-              { \box_use:N \l_@@_internal_box }
+              { \box_use_drop:N \l_@@_internal_box }
           }
         \box_set_dp:Nn \l_@@_internal_box { - \@@_dim_eval:n {#3} }
       }
       {
         \hbox_set:Nn \l_@@_internal_box
-          { \box_move_down:nn {#3} { \box_use:N \l_@@_internal_box } }
+          { \box_move_down:nn {#3} { \box_use_drop:N \l_@@_internal_box } }
         \box_set_dp:Nn \l_@@_internal_box \c_zero_dim
       }
     \dim_compare:nNnTF {#5} > \c_zero_dim
@@ -1593,7 +1593,7 @@
         \hbox_set:Nn \l_@@_internal_box
           {
             \box_move_up:nn \c_zero_dim
-              { \box_use:N \l_@@_internal_box }
+              { \box_use_drop:N \l_@@_internal_box }
           }
         \box_set_ht:Nn \l_@@_internal_box
           {
@@ -1606,7 +1606,7 @@
         \hbox_set:Nn \l_@@_internal_box
           {
             \box_move_up:nn { - \@@_dim_eval:n {#5} }
-              { \box_use:N \l_@@_internal_box }
+              { \box_use_drop:N \l_@@_internal_box }
           }
         \box_set_ht:Nn \l_@@_internal_box \c_zero_dim
       }
@@ -1731,7 +1731,7 @@
     \box_set_dp:Nn \l_@@_internal_box { 0 pt }
     \box_set_wd:Nn \l_@@_internal_box
       { \l_@@_right_corner_dim - \l_@@_left_corner_dim }
-    \hbox_set:Nn #1 { \box_use:N \l_@@_internal_box }
+    \hbox_set:Nn #1 { \box_use_drop:N \l_@@_internal_box }
 %    \end{macrocode}
 %   The final task is to move the poles and corners such that they are
 %   back in alignment with the box reference point.





More information about the latex3-commits mailing list