[latex3-commits] [git/LaTeX3-latex3-latex2e] callback_rules: Remove luatexbase change (a2777386)
Marcel Fabian Krüger
tex at 2krueger.de
Sat Aug 13 14:54:36 CEST 2022
Repository : https://github.com/latex3/latex2e
On branch : callback_rules
Link : https://github.com/latex3/latex2e/commit/a27773867edd304ae6163eca302fbc9312ef4194
>---------------------------------------------------------------
commit a27773867edd304ae6163eca302fbc9312ef4194
Author: Marcel Fabian Krüger <tex at 2krueger.de>
Date: Sat Aug 13 14:53:27 2022 +0200
Remove luatexbase change
>---------------------------------------------------------------
a27773867edd304ae6163eca302fbc9312ef4194
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.