diff options
author | Taco Hoekwater <taco@elvenkind.com> | 2011-06-01 08:54:21 +0000 |
---|---|---|
committer | Taco Hoekwater <taco@elvenkind.com> | 2011-06-01 08:54:21 +0000 |
commit | d7ccb42582f85acf30568913610ccf4d602023fb (patch) | |
tree | 7292e3545a420676878e7451b68892d360c62cb6 /Master/texmf-dist/scripts/context/lua/mtx-server-ctx-help.lua | |
parent | 2d62a6fe9b80def59c392268022f1f9a2d6e358f (diff) |
commit context 2011.05.18
git-svn-id: svn://tug.org/texlive/trunk@22719 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/scripts/context/lua/mtx-server-ctx-help.lua')
-rw-r--r-- | Master/texmf-dist/scripts/context/lua/mtx-server-ctx-help.lua | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/Master/texmf-dist/scripts/context/lua/mtx-server-ctx-help.lua b/Master/texmf-dist/scripts/context/lua/mtx-server-ctx-help.lua index 2f072f97747..15f393853c1 100644 --- a/Master/texmf-dist/scripts/context/lua/mtx-server-ctx-help.lua +++ b/Master/texmf-dist/scripts/context/lua/mtx-server-ctx-help.lua @@ -8,15 +8,17 @@ if not modules then modules = { } end modules ['mtx-server-ctx-help'] = { -- todo in lua interface: noargument, oneargument, twoarguments, threearguments ---~ dofile(resolvers.find_file("l-aux.lua","tex")) ---~ dofile(resolvers.find_file("l-url.lua","tex")) -dofile(resolvers.find_file("trac-lmx.lua","tex")) +--~ dofile(resolvers.findfile("l-aux.lua","tex")) +--~ dofile(resolvers.findfile("l-url.lua","tex")) +dofile(resolvers.findfile("trac-lmx.lua","tex")) -- problem ... serialize parent stack local format = string.format local concat = table.concat +local report = logs.reporter("ctx-help") + -- -- -- make this a module: cont-xx.lua document = document or { } @@ -329,7 +331,7 @@ document.setups.showsources = true document.setups.mode = 1 function document.setups.load(filename) - filename = resolvers.find_file(filename) or "" + filename = resolvers.findfile(filename) or "" if filename ~= "" then local current = document.setups.loaded[filename] if not current then @@ -574,7 +576,7 @@ local variables = { } --~ function lmx.loadedfile(filename) ---~ return io.loaddata(resolvers.find_file(filename)) -- return resolvers.texdatablob(filename) +--~ return io.loaddata(resolvers.findfile(filename)) -- return resolvers.texdatablob(filename) --~ end local function doit(configuration,filename,hashed) @@ -591,7 +593,7 @@ local function doit(configuration,filename,hashed) lastmode = tonumber(detail.mode or lastmode) or 1 if lastinterface then - logs.simple("checking interface: %s",lastinterface) + report("checking interface: %s",lastinterface) document.setups.load(format("cont-%s.xml",lastinterface)) end @@ -632,7 +634,7 @@ local function doit(configuration,filename,hashed) if document.setups.showsources and lastsource and lastsource ~= "" then -- todo: mkii, mkiv, tex (can be different) - local data = io.loaddata(resolvers.find_file(lastsource)) + local data = io.loaddata(resolvers.findfile(lastsource)) variables.maintitle = lastsource variables.maintext = formats.listing:format(data) lastsource = "" @@ -657,7 +659,7 @@ local function doit(configuration,filename,hashed) local content = lmx.convert('context-help.lmx',false,variables) - logs.simple("time spent on page: %0.03f seconds",os.clock()-start) + report("time spent on page: %0.03f seconds",os.clock()-start) return { content = content } end |