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

Marcel Fabian Krüger tex at 2krueger.de
Mon Aug 15 05:23:28 CEST 2022


Repository : https://github.com/latex3/latex2e
On branch  : callback_rules
Link       : https://github.com/latex3/latex2e/commit/9d31fca141891ac8ffdc669d8426d5628b8d9f37

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

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

    Remove luatexbase change


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

9d31fca141891ac8ffdc669d8426d5628b8d9f37
 base/ltluatex.dtx | 30 ------------------------------
 1 file changed, 30 deletions(-)

diff --git a/base/ltluatex.dtx b/base/ltluatex.dtx
index a3038b26..5c0666a9 100644
--- a/base/ltluatex.dtx
+++ b/base/ltluatex.dtx
@@ -2100,36 +2100,6 @@ function shared_callbacks.mlist_to_hlist.handler(head, display_type, need_penalt
 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.