[latex3-commits] [git/LaTeX3-latex3-latex2e] callback_rules: Remove luatexbase change (20786937)

Marcel Fabian Krüger tex at 2krueger.de
Sat Aug 13 15:50:05 CEST 2022


Repository : https://github.com/latex3/latex2e
On branch  : callback_rules
Link       : https://github.com/latex3/latex2e/commit/20786937d2740380140a6481295f65beb5c88ea7

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

commit 20786937d2740380140a6481295f65beb5c88ea7
Author: Marcel Fabian Krüger <tex at 2krueger.de>
Date:   Sat Aug 13 14:53:27 2022 +0200

    Remove luatexbase change


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

20786937d2740380140a6481295f65beb5c88ea7
 base/ltluatex.dtx | 30 ------------------------------
 1 file changed, 30 deletions(-)

diff --git a/base/ltluatex.dtx b/base/ltluatex.dtx
index 38415458..b368d6c6 100644
--- a/base/ltluatex.dtx
+++ b/base/ltluatex.dtx
@@ -2061,36 +2061,6 @@ callback_register("mlist_to_hlist", function(head, display_type, need_penalties)
 end)
 %    \end{macrocode}
 % \end{macro}
-%
-% And finally some patching for the luatexbase priority argument:
-%    \begin{macrocode}
-local func = luatexbase.new_luafunction'ConstrainCallbacks at PatchLuatexbase'
-token.set_lua('ConstrainCallbacks at PatchLuatexbase', func, 'protected')
-lua.get_functions_table()[func] = function()
-  luatexbase.base_add_to_callback = add_to_callback
-  function luatexbase.add_to_callback(name,fun,description,priority)
-    if not priority then
-      return add_to_callback(name, fun, description)
-    end
-    local descriptions = luatexbase.callback_descriptions(name)
-%    if not priority then
-%      priority = #descriptions + 1
-%    end
-    if luatexbase.callbacktypes[name] == 3 then
-      if priority == 1 and #descriptions==1 then
-        luatexbase.module_warning("luatexbase",
-                                  "resetting exclusive callback: " .. name)
-        luatexbase.reset_callback(name)
-      end
-      else
-      for i, desc in ipairs(descriptions) do
-        declare_callback_rule(name, desc, description, i < priority and 'before' or 'after')
-      end
-    end
-    return add_to_callback(name,fun,description)
-  end
-end
-%    \end{macrocode}
 % \endgroup
 %
 %    \begin{macrocode}





More information about the latex3-commits mailing list.