[latex3-commits] [git/LaTeX3-latex3-latex3] LaTeX2020: Correct file stack when pre-loading (1c00ef504)

Joseph Wright joseph.wright at morningstar2.co.uk
Sun Oct 6 14:19:31 CEST 2019


Repository : https://github.com/latex3/latex3
On branch  : LaTeX2020
Link       : https://github.com/latex3/latex3/commit/1c00ef50461f0e673a0d4e20a2d0c63bdc3658a8

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

commit 1c00ef50461f0e673a0d4e20a2d0c63bdc3658a8
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Sun Oct 6 13:19:31 2019 +0100

    Correct file stack when pre-loading
    
    This is all a little tricky: may yet need further work.


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

1c00ef50461f0e673a0d4e20a2d0c63bdc3658a8
 l3kernel/l3sys.dtx | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/l3kernel/l3sys.dtx b/l3kernel/l3sys.dtx
index 69dc7ddaa..10d719a5b 100644
--- a/l3kernel/l3sys.dtx
+++ b/l3kernel/l3sys.dtx
@@ -613,9 +613,15 @@
 % \begin{variable}{\c_sys_jobname_str}
 %   Inherited from the \LaTeX3 name for the primitive: this needs to
 %   actually contain the text of the job name rather than the name of
-%   the primitive, of course.
+%   the primitive, of course.  In pre-loaded mode, the stack will need
+%   a little correction.
 %    \begin{macrocode}
 \str_const:Nx \c_sys_jobname_str { \tex_jobname:D }
+\cs_if_exist:cF { ver at expl3.sty }
+  {
+    \exp_args:Nx \__kernel_file_input_push:n { \c_sys_jobname_str }
+    \__kernel_file_input_push:n { ??? }
+  }
 %    \end{macrocode}
 % \end{variable}
 %





More information about the latex3-commits mailing list