summaryrefslogtreecommitdiff
path: root/tex/context/base/mkxl/node-par.lmt
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/mkxl/node-par.lmt')
-rw-r--r--tex/context/base/mkxl/node-par.lmt17
1 files changed, 17 insertions, 0 deletions
diff --git a/tex/context/base/mkxl/node-par.lmt b/tex/context/base/mkxl/node-par.lmt
index 290c2fbd8..fb492b84b 100644
--- a/tex/context/base/mkxl/node-par.lmt
+++ b/tex/context/base/mkxl/node-par.lmt
@@ -95,6 +95,23 @@ do
end
+-- These are node handlers but fit it the overall paragraph handling so we
+-- hook it into the callback here.
+
+do
+
+ local localboxactions = nodes.tasks.actions("localboxes")
+
+ function localboxfilter(...)
+ starttiming(builders)
+ localboxactions(...)
+ stoptiming(builders)
+ end
+
+ callbacks.register("local_box_filter",localboxfilter,"process local boxes")
+
+end
+
-- This means that we now have most callbacks in use, even the ones that I'm not sure
-- about. It also means that with the above enabled we might have performance now at
-- its worst. I can optimize this a little but it's not worth the effort (and added