[latex3-commits] [git/LaTeX3-latex3-latex2e] shared_callback: Mark changes (a7686ba5)
Marcel Fabian Krüger
tex at 2krueger.de
Sat Aug 13 14:41:30 CEST 2022
Repository : https://github.com/latex3/latex2e
On branch : shared_callback
Link : https://github.com/latex3/latex2e/commit/a7686ba5319e47c28e9bd6bc4f02d0753ec4d2bf
>---------------------------------------------------------------
commit a7686ba5319e47c28e9bd6bc4f02d0753ec4d2bf
Author: Marcel Fabian Krüger <tex at 2krueger.de>
Date: Tue May 17 00:18:42 2022 +0200
Mark changes
>---------------------------------------------------------------
a7686ba5319e47c28e9bd6bc4f02d0753ec4d2bf
base/changes.txt | 5 +++++
base/ltluatex.dtx | 6 +++++-
2 files changed, 10 insertions(+), 1 deletion(-)
diff --git a/base/changes.txt b/base/changes.txt
index cef69f97..735ac8f4 100644
--- a/base/changes.txt
+++ b/base/changes.txt
@@ -6,6 +6,11 @@ completeness or accuracy and it contains some references to files that
are not part of the distribution.
================================================================================
+2022-08-13 Marcel Krüger <Marcel.Krueger at latex-project.org>
+
+ * ltluatex.dtx:
+ Unregister mlist_to_hlist callback when no related callbacks are registered
+
2022-07-23 Joseph Wright <Joseph.Wright at latex-project.org>
* ltkeys.dtx:
diff --git a/base/ltluatex.dtx b/base/ltluatex.dtx
index bd6b6cfc..ab81c362 100644
--- a/base/ltluatex.dtx
+++ b/base/ltluatex.dtx
@@ -28,7 +28,7 @@
\ProvidesFile{ltluatex.dtx}
%</driver>
%<*tex>
-[2021/12/27 v1.1x
+[2022/08/13 v1.1y
%</tex>
%<plain> LuaTeX support for plain TeX (core)
%<*tex>
@@ -1459,6 +1459,7 @@ local callbacktypes = callbacktypes or {
luatexbase.callbacktypes=callbacktypes
% \end{macrocode}
%
+% \changes{v1.1y}{2022/08/13}{shared\_callbacks added}
% Sometimes multiple callbacks correspond to a single underlying engine level callback.
% Then the engine level callback should be registered as long as at least one of these
% callbacks is in use. This is implemented though a shared table which counts how many
@@ -1755,6 +1756,7 @@ local function add_to_callback(name, func, description)
l = { }
callbacklist[name] = l
% \end{macrocode}
+% \changes{v1.1y}{2022/08/13}{Adapted code for shared\_callbacks}
% Handle count for shared engine callbacks.
% \begin{macrocode}
local shared = shared_callbacks[name]
@@ -1804,6 +1806,7 @@ luatexbase.add_to_callback = add_to_callback
% \changes{v1.0k}{2015/12/02}{adjust initialization of cb local (PHG)}
% \changes{v1.0k}{2015/12/02}{Give more specific error messages (PHG)}
% \changes{v1.1m}{2020/03/07}{Do not call callback.register for user-defined callbacks}
+% \changes{v1.1y}{2022/08/13}{Adapted code for shared\_callbacks}
% Remove a function from a callback. First check arguments.
% \begin{macrocode}
local function remove_from_callback(name, description)
@@ -1949,6 +1952,7 @@ luatexbase.uninstall = uninstall
% \end{macro}
% \begin{macro}{mlist_to_hlist}
% \changes{v1.1l}{2020/02/02}{|pre/post_mlist_to_hlist| added}
+% \changes{v1.1y}{2022/08/13}{Use shared\_callback system for pre/post/mlist_to_hlist}
% To emulate these callbacks, the ``real'' |mlist_to_hlist| is replaced by a
% wrapper calling the wrappers before and after.
% \begin{macrocode}
More information about the latex3-commits
mailing list.