summaryrefslogtreecommitdiff
path: root/tex/context/base/node-ref.lua
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2011-03-25 18:03:00 +0100
committerHans Hagen <pragma@wxs.nl>2011-03-25 18:03:00 +0100
commit4ed30744220cf0763f968c837b0ff7dd367f19b2 (patch)
tree28d1dce431e679b3a6d28edef78cb38096d4c94f /tex/context/base/node-ref.lua
parent3c5dbaefc44f38d6da23a7db2c06a0a4af0996fa (diff)
downloadcontext-4ed30744220cf0763f968c837b0ff7dd367f19b2.tar.gz
beta 2011.03.25 18:03
Diffstat (limited to 'tex/context/base/node-ref.lua')
-rw-r--r--tex/context/base/node-ref.lua35
1 files changed, 6 insertions, 29 deletions
diff --git a/tex/context/base/node-ref.lua b/tex/context/base/node-ref.lua
index c54614359..fbf528629 100644
--- a/tex/context/base/node-ref.lua
+++ b/tex/context/base/node-ref.lua
@@ -220,7 +220,11 @@ local function inject_areas(head,attribute,make,stack,done,skip,parent,pardir,tx
elseif id == glue_code and current.subtype == leftskip_code then -- any glue at the left?
--
elseif id == hlist_code or id == vlist_code then
- if not reference and r and (not skip or r > skip) then
+-- somehow reference is true so teh following fails (second one not done) in
+-- test \goto{test}[page(2)] test \gotobox{test}[page(2)]
+-- so let's wait till this fails again
+-- if not reference and r and (not skip or r > skip) then -- > or ~=
+ if r and (not skip or r > skip) then -- > or ~=
inject_list(id,current,r,make,stack,pardir,txtdir)
end
if r then
@@ -241,7 +245,7 @@ local function inject_areas(head,attribute,make,stack,done,skip,parent,pardir,tx
elseif r == reference then
last = current
elseif (done[reference] or 0) == 0 then -- or id == glue_code and current.subtype == right_skip_code
- if not skip or r > skip then
+ if not skip or r > skip then -- maybe no > test
head, current = inject_range(head,first,last,reference,make,stack,parent,pardir,firstdir)
reference, first, last, firstdir = nil, nil, nil, nil
end
@@ -552,33 +556,6 @@ local function checkboth(open,close)
return open, close
end
--- expansion is temp hack
-
-local opendocument, closedocument, openpage, closepage
-
-local function check(what)
- if what and what ~= "" then
- local set, bug = references.identify("",what)
- return not bug and #set > 0 and set
- end
-end
-
-function references.checkopendocumentactions (open) opendocument = check(open) end
-function references.checkclosedocumentactions(close) closedocument = check(close) end
-function references.checkopenpageactions (open) openpage = check(open) end
-function references.checkclosepageactions (close) closepage = check(close) end
-
-function references.flushdocumentactions()
- if opendocument or closedocument then
- codeinjections.flushdocumentactions(opendocument,closedocument) -- backend
- end
-end
-function references.flushpageactions()
- if openpage or closepage then
- codeinjections.flushpageactions(openpage,closepage) -- backend
- end
-end
-
-- end temp hack
statistics.register("interactive elements", function()