summaryrefslogtreecommitdiff
path: root/tex/context/base/file-res.lua
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2011-07-21 18:09:00 +0200
committerHans Hagen <pragma@wxs.nl>2011-07-21 18:09:00 +0200
commitcd5ed2f3cb9052857cf0f35e2557f93f2b549270 (patch)
treecdd1d3bb60e8a2362841528173583c7b6d149e53 /tex/context/base/file-res.lua
parent1f45bef04262b5172d130ce3ebe0609b11a2beb7 (diff)
downloadcontext-cd5ed2f3cb9052857cf0f35e2557f93f2b549270.tar.gz
beta 2011.07.21 18:09
Diffstat (limited to 'tex/context/base/file-res.lua')
-rw-r--r--tex/context/base/file-res.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/tex/context/base/file-res.lua b/tex/context/base/file-res.lua
index d0db95f59..24b0f1cfc 100644
--- a/tex/context/base/file-res.lua
+++ b/tex/context/base/file-res.lua
@@ -22,7 +22,7 @@ local found = { } -- can best be done in the resolver itself
local function readfilename(specification,backtrack,treetoo)
local name = specification.filename
- local fnd = found[name]
+ local fnd = name and found[name]
if not fnd then
if isfile(name) then
if trace_files then
@@ -66,6 +66,8 @@ local function readfilename(specification,backtrack,treetoo)
return fnd or ""
end
+--~ resolvers.readfilename = readfilename -- bonus use getreadfilename instead
+
function finders.job(specification) return readfilename(specification,false, false) end -- current path, no backtracking
function finders.loc(specification) return readfilename(specification,resolvers.maxreadlevel,false) end -- current path, backtracking
function finders.sys(specification) return readfilename(specification,false, true ) end -- current path, obeys tex search