diff options
Diffstat (limited to 'tex/context/base/attr-ini.lua')
-rw-r--r-- | tex/context/base/attr-ini.lua | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/tex/context/base/attr-ini.lua b/tex/context/base/attr-ini.lua index 2a1879c9a..6c281d643 100644 --- a/tex/context/base/attr-ini.lua +++ b/tex/context/base/attr-ini.lua @@ -58,7 +58,7 @@ function attributes.private(name) -- at the lua end (hidden from user) return number end --- new +-- new (actually a tracer) function attributes.ofnode(n) local a = n.attr @@ -71,3 +71,11 @@ function attributes.ofnode(n) end end end + +-- interface + +commands.defineattribute = attributes.define + +function commands.getprivateattribute(name) + context(attributes.private(name)) +end |