summaryrefslogtreecommitdiff
path: root/tex/context/base/file-lib.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/file-lib.lua')
-rw-r--r--tex/context/base/file-lib.lua6
1 files changed, 4 insertions, 2 deletions
diff --git a/tex/context/base/file-lib.lua b/tex/context/base/file-lib.lua
index 2471cdd84..361608ea3 100644
--- a/tex/context/base/file-lib.lua
+++ b/tex/context/base/file-lib.lua
@@ -9,7 +9,7 @@ if not modules then modules = { } end modules ['file-lib'] = {
-- todo: check all usage of truefilename at the tex end and remove
-- files there (and replace definitions by full names)
-local format = string.format
+local format, gsub = string.format, string.gsub
local trace_libraries = false trackers.register("resolvers.libraries", function(v) trace_libraries = v end)
----- trace_files = false trackers.register("resolvers.readfile", function(v) trace_files = v end)
@@ -33,7 +33,7 @@ local function defaultfailure(name)
report_files("asked name %a, not found",name)
end
-function commands.uselibrary(specification) -- todo: reporter
+function resolvers.uselibrary(specification) -- todo: reporter
local name = specification.name
if name and name ~= "" then
local patterns = specification.patterns or defaultpatterns
@@ -86,3 +86,5 @@ function commands.uselibrary(specification) -- todo: reporter
end
end
end
+
+commands.uselibrary = resolvers.uselibrary -- for the moment