[latex3-commits] [latex3/latex3] main: Revert "Use the kernel hook in place of \AtBeginDocument" (594d7fa0d)

github at latex-project.org github at latex-project.org
Tue Feb 20 08:32:11 CET 2024


Repository : https://github.com/latex3/latex3
On branch  : main
Link       : https://github.com/latex3/latex3/commit/594d7fa0d375fed6d7729ed4452f8e85bc83c574

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

commit 594d7fa0d375fed6d7729ed4452f8e85bc83c574
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Tue Feb 20 07:32:11 2024 +0000

    Revert "Use the kernel hook in place of \AtBeginDocument"
    
    This reverts commit c641dc1fbd80dbbc4712661a31e887c67262eee3.


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

594d7fa0d375fed6d7729ed4452f8e85bc83c574
 l3kernel/l3file.dtx | 19 ++++++++-----------
 1 file changed, 8 insertions(+), 11 deletions(-)

diff --git a/l3kernel/l3file.dtx b/l3kernel/l3file.dtx
index 33b7c9275..26ff4b3cf 100644
--- a/l3kernel/l3file.dtx
+++ b/l3kernel/l3file.dtx
@@ -3711,19 +3711,16 @@
 % \cs{@filelist} must be turned to strings before being added to
 % \cs{g_@@_record_seq}.
 %    \begin{macrocode}
-\cs_if_exist:NT \@expl at finalise@setup@@@@
+\cs_if_exist:NT \@filelist
   {
-    \tl_gput_right:Nn \@expl at finalise@setup@@@@
+    \AtBeginDocument
       {
-        \tl_gput_right:Nn \@kernel at after@begindocument
-          {
-            \exp_args:NNe \seq_set_from_clist:Nn \l_@@_tmp_seq
-              { \tl_to_str:N \@filelist }
-            \seq_gconcat:NNN
-              \g_@@_record_seq
-              \g_@@_record_seq
-              \l_@@_tmp_seq
-          }
+        \exp_args:NNe \seq_set_from_clist:Nn \l_@@_tmp_seq
+          { \tl_to_str:N \@filelist }
+        \seq_gconcat:NNN
+          \g_@@_record_seq
+          \g_@@_record_seq
+          \l_@@_tmp_seq
       }
   }
 %    \end{macrocode}





More information about the latex3-commits mailing list.