summaryrefslogtreecommitdiff
path: root/tex/context/base/strc-lst.lua
diff options
context:
space:
mode:
authorMarius <mariausol@gmail.com>2011-06-23 20:40:17 +0300
committerMarius <mariausol@gmail.com>2011-06-23 20:40:17 +0300
commit1f49aee839e281d04be7b6cb6f959590bed1d581 (patch)
treeecca5409a1481e7f99dc407735bb76730e7aff2d /tex/context/base/strc-lst.lua
parent06465c8428905be5c083c70f4e7de6a59d129139 (diff)
downloadcontext-1f49aee839e281d04be7b6cb6f959590bed1d581.tar.gz
beta 2011.06.23 19:25
Diffstat (limited to 'tex/context/base/strc-lst.lua')
-rw-r--r--tex/context/base/strc-lst.lua11
1 files changed, 10 insertions, 1 deletions
diff --git a/tex/context/base/strc-lst.lua b/tex/context/base/strc-lst.lua
index 21015e43a..930ff2d0a 100644
--- a/tex/context/base/strc-lst.lua
+++ b/tex/context/base/strc-lst.lua
@@ -104,6 +104,9 @@ local function initializer()
end
end
end
+ if r then
+ r.listindex = i -- handy to have
+ end
end
end
@@ -118,6 +121,7 @@ function lists.push(t)
p = #cached + 1
cached[p] = helpers.simplify(t)
pushed[i] = p
+ r.listindex = p
end
texwrite(p)
end
@@ -144,7 +148,12 @@ function lists.enhance(n)
local kind = metadata.kind
local name = metadata.name
if references then
- references.tag = tags.getid(kind,name)
+ -- is this used ?
+ local tag = tags.getid(kind,name)
+ if tag and tag ~= "?" then
+ references.tag = tag
+ end
+ --~ references.listindex = n
end
-- specific enhancer (kind of obsolete)
local enhancer = kind and lists.enhancers[kind]