[latex3-commits] [git/LaTeX3-latex3-latex2e] callback_rules: Remove luatexbase change (94b8dac0)
Marcel Fabian Krüger
tex at 2krueger.de
Mon Oct 3 21:08:17 CEST 2022
Repository : https://github.com/latex3/latex2e
On branch : callback_rules
Link : https://github.com/latex3/latex2e/commit/94b8dac0df090d22ccb9fbae19494fb0e6d29ec8
>---------------------------------------------------------------
commit 94b8dac0df090d22ccb9fbae19494fb0e6d29ec8
Author: Marcel Fabian Krüger <tex at 2krueger.de>
Date: Sat Aug 13 14:53:27 2022 +0200
Remove luatexbase change
>---------------------------------------------------------------
94b8dac0df090d22ccb9fbae19494fb0e6d29ec8
base/ltluatex.dtx | 30 ------------------------------
1 file changed, 30 deletions(-)
diff --git a/base/ltluatex.dtx b/base/ltluatex.dtx
index 98a62681..c38b943d 100644
--- a/base/ltluatex.dtx
+++ b/base/ltluatex.dtx
@@ -2102,36 +2102,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.