summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/context/base/mkiv/node-ppt.lua
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/context/base/mkiv/node-ppt.lua')
-rw-r--r--Master/texmf-dist/tex/context/base/mkiv/node-ppt.lua16
1 files changed, 6 insertions, 10 deletions
diff --git a/Master/texmf-dist/tex/context/base/mkiv/node-ppt.lua b/Master/texmf-dist/tex/context/base/mkiv/node-ppt.lua
index 2573e5f5cea..5ebfca87d14 100644
--- a/Master/texmf-dist/tex/context/base/mkiv/node-ppt.lua
+++ b/Master/texmf-dist/tex/context/base/mkiv/node-ppt.lua
@@ -27,10 +27,8 @@ local getnext = nuts.getnext
local getprev = nuts.getprev
local getsubtype = nuts.getsubtype
local getfield = nuts.getfield
-local setfield = nuts.setfield
local getlist = nuts.getlist
local setlist = nuts.setlist
-local flushnode = nuts.flush
local removenode = nuts.remove
local traverse = nuts.traverse
local traverse_id = nuts.traverse_id
@@ -46,9 +44,6 @@ local userdefined_code = whatsitcodes.userdefined
local nodepool = nodes.pool
local new_usernumber = nodepool.usernumber
-local nutpool = nuts.pool
-local nut_usernumber = nutpool.usernumber
-
local variables = interfaces.variables
local v_before = variables.before
local v_after = variables.after
@@ -89,14 +84,13 @@ local function register(where,data,...)
end
local writenode = node.write
-local flushnode = context.flushnode
+local flushnode = context.nodes.flush
function commands.deferredproperty(...)
-- context(register(...))
flushnode(register(...))
end
-
function commands.immediateproperty(...)
writenode(register(...))
end
@@ -107,8 +101,7 @@ local actions = { } properties.actions = actions
table.setmetatableindex(actions,function(t,k)
report("unknown property action %a",k)
- local v = function() end
- return v
+ return function() end
end)
local f_delayed = formatters["return function(target,head,where,propdata,parent) %s end"]
@@ -180,6 +173,9 @@ end
-- another experiment (a table or function closure are equally efficient); a function
-- is easier when we want to experiment with different (compatible) implementations
+-- local nutpool = nuts.pool
+-- local nut_usernumber = nutpool.usernumber
+
-- function nodes.nuts.pool.deferredfunction(...)
-- nofdelayed = nofdelayed + 1
-- local n = nut_usernumber(property_id,0)
@@ -316,7 +312,7 @@ local anchored = {
}
table.setmetatableindex(anchored,function(t,k)
- v = anchored[v_after]
+ local v = anchored[v_after]
t[k] = v
return v
end)