From 88b50eb56c6effbf943ce2fd9afbfe41a5cec45e Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Thu, 11 Apr 2013 15:15:12 +0200 Subject: add extended sequence --- lualibs.lua | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'lualibs.lua') diff --git a/lualibs.lua b/lualibs.lua index a38f974..7255147 100644 --- a/lualibs.lua +++ b/lualibs.lua @@ -32,7 +32,7 @@ else find_file = kpse.find_file end -loadmodule = _ENV.loadmodule or function (name, t) +loadmodule = _G.loadmodule or function (name, t) if not t then t = "library" end local filepath = kpse.find_file(name, "lua") if not filepath or filepath == "" then @@ -71,11 +71,19 @@ local loadmerged = function (basename) end end +--[[doc-- +The separation of the “basic” from the “extended” sets coincides with +the split into luat-bas.mkiv and luat-lib.mkiv. +--doc]]-- loadmerged"basic.lua" --inspect(table.keys(table)) --inspect(table.keys(string)) loadmerged"extended.lua" +--- merge generates wrong syntax for this one, so we load it separately +--- http://www.ntg.nl/pipermail/ntg-context/2013/072336.html +--loadmodule"util-dim" + io.write"\n" -- -- vim:tw=71:sw=2:ts=2:expandtab -- cgit v1.2.3