summaryrefslogtreecommitdiff
path: root/tex/context/base/mkiv/buff-ini.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/mkiv/buff-ini.lua')
-rw-r--r--tex/context/base/mkiv/buff-ini.lua31
1 files changed, 19 insertions, 12 deletions
diff --git a/tex/context/base/mkiv/buff-ini.lua b/tex/context/base/mkiv/buff-ini.lua
index 80272c1bf..876a6944e 100644
--- a/tex/context/base/mkiv/buff-ini.lua
+++ b/tex/context/base/mkiv/buff-ini.lua
@@ -591,18 +591,25 @@ implement {
arguments = "string"
}
-local startbuffer = context.startbuffer
-local stopbuffer = context.stopbuffer
+do
-local startcollecting = context.startcollecting
-local stopcollecting = context.stopcollecting
+ local context = context
+ local ctxcore = context.core
-function context.startbuffer(...)
- startcollecting()
- startbuffer(...)
-end
+ local startbuffer = ctxcore.startbuffer
+ local stopbuffer = ctxcore.stopbuffer
-function context.stopbuffer()
- stopbuffer()
- stopcollecting()
-end
+ local startcollecting = context.startcollecting
+ local stopcollecting = context.stopcollecting
+
+ function ctxcore.startbuffer(...)
+ startcollecting()
+ startbuffer(...)
+ end
+
+ function ctxcore.stopbuffer()
+ stopbuffer()
+ stopcollecting()
+ end
+
+ end