[latex3-commits] [git/LaTeX3-latex3-latex2e] shared_callback: Mark changes (d34c48c5)

Marcel Fabian Krüger tex at 2krueger.de
Tue May 17 00:18:42 CEST 2022


Repository : https://github.com/latex3/latex2e
On branch  : shared_callback
Link       : https://github.com/latex3/latex2e/commit/d34c48c5287540aa27aa74f8d012e434b59eea08

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

commit d34c48c5287540aa27aa74f8d012e434b59eea08
Author: Marcel Fabian Krüger <tex at 2krueger.de>
Date:   Tue May 17 00:18:42 2022 +0200

    Mark changes


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

d34c48c5287540aa27aa74f8d012e434b59eea08
 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 f1ad2672..7f93ef24 100644
--- a/base/changes.txt
+++ b/base/changes.txt
@@ -5,6 +5,11 @@ It is provided for convenience only.  It therefore makes no claims to
 completeness or accuracy and it contains some references to files that
 are not part of the distribution.
 ================================================================================
+2022-05-17  Marcel Krüger  <Marcel.Krueger at latex-project.org>
+
+  * ltluatex.dtx:
+	Unregister mlist_to_hlist callback when no related callbacks are registered
+
 2022-05-08  Marcel Krüger  <Marcel.Krueger at latex-project.org>
 
   * utf8ienc.dtx:
diff --git a/base/ltluatex.dtx b/base/ltluatex.dtx
index bd6b6cfc..f84388c2 100644
--- a/base/ltluatex.dtx
+++ b/base/ltluatex.dtx
@@ -28,7 +28,7 @@
 \ProvidesFile{ltluatex.dtx}
 %</driver>
 %<*tex>
-[2021/12/27 v1.1x
+[2022/05/17 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/05/17}{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/05/17}{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/05/17}{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/05/17}{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.