[latex3-commits] [git/LaTeX3-latex3-latex2e] gh524: Reorder code for latexrelease (b26e7ed7)
PhelypeOleinik
phelype.oleinik at latex-project.org
Tue Apr 20 15:03:38 CEST 2021
Repository : https://github.com/latex3/latex2e
On branch : gh524
Link : https://github.com/latex3/latex2e/commit/b26e7ed7431f141b424dc666d50f63d530301e3b
>---------------------------------------------------------------
commit b26e7ed7431f141b424dc666d50f63d530301e3b
Author: PhelypeOleinik <phelype.oleinik at latex-project.org>
Date: Tue Apr 20 10:03:38 2021 -0300
Reorder code for latexrelease
>---------------------------------------------------------------
b26e7ed7431f141b424dc666d50f63d530301e3b
base/ltfinal.dtx | 26 +++++++++++++++++---------
1 file changed, 17 insertions(+), 9 deletions(-)
diff --git a/base/ltfinal.dtx b/base/ltfinal.dtx
index f70cfea2..477fd6b2 100644
--- a/base/ltfinal.dtx
+++ b/base/ltfinal.dtx
@@ -245,10 +245,21 @@
% \begin{macro}{trace_stack_levels}
% Now define the Lua function to emulate \cs{tracingstacklevels} and
% install it in the \texttt{input_level_string} callback.
-% \changes{v2.0k}{2016/01/05}{Remove duplicated code}
% \begin{macrocode}
%</2ekernel>
%<*2ekernel|latexrelease>
+% \end{macrocode}
+% In \texttt{latexrelease} mode we always remove the function from
+% the callback, then add the correct version later.
+% \begin{macrocode}
+%<latexrelease>\ifx\directlua\@undefined
+%<latexrelease>\else
+%<latexrelease> \directlua{%
+%<latexrelease> if luatexbase.callbacktypes['input_level_string'] and %
+%<latexrelease> luatexbase.in_callback('input_level_string','tracingstacklevels') then
+%<latexrelease> luatexbase.remove_from_callback('input_level_string','tracingstacklevels')
+%<latexrelease> end}%
+%<latexrelease>\fi
%<latexrelease>\IncludeInRelease{2021/06/01}{trace_stack_levels}%
%<latexrelease> {Lua trace_stack_levels function}%
\ifx\directlua\@undefined
@@ -291,16 +302,13 @@
\fi
%<latexrelease>\EndIncludeInRelease
%<latexrelease>
+% \end{macrocode}
+% Then for the full rollback, just do nothing, since the function
+% was already taken out of the rollback above.
+% \begin{macrocode}
%<latexrelease>\IncludeInRelease{0000/00/00}{trace_stack_levels}%
%<latexrelease> {Lua trace_stack_levels function}%
-%<latexrelease>\ifx\directlua\@undefined
-%<latexrelease>\else
-%<latexrelease> \directlua{%
-%<latexrelease> if luatexbase.callbacktypes['input_level_string'] and %
-%<latexrelease> luatexbase.in_callback('input_level_string','tracingstacklevels') then
-%<latexrelease> luatexbase.remove_from_callback('input_level_string','tracingstacklevels')
-%<latexrelease> end}%
-%<latexrelease>\fi
+%<latexrelease>% Nothing here
%<latexrelease>\EndIncludeInRelease
%</2ekernel|latexrelease>
%<*2ekernel>
More information about the latex3-commits
mailing list.