summaryrefslogtreecommitdiff
path: root/tex/context/base/file-job.lua
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2014-07-10 13:14:00 +0200
committerHans Hagen <pragma@wxs.nl>2014-07-10 13:14:00 +0200
commitbc10e60257b5b448e6fcc7bfaeef633fa2e19735 (patch)
tree21f6db9844959848a66afb61a027b6f226879a6c /tex/context/base/file-job.lua
parent305f6529b5970f953803716fb0e475c7f52ff3b5 (diff)
downloadcontext-bc10e60257b5b448e6fcc7bfaeef633fa2e19735.tar.gz
beta 2014.07.10 13:14
Diffstat (limited to 'tex/context/base/file-job.lua')
-rw-r--r--tex/context/base/file-job.lua12
1 files changed, 7 insertions, 5 deletions
diff --git a/tex/context/base/file-job.lua b/tex/context/base/file-job.lua
index ca0de2696..bbc7abcd0 100644
--- a/tex/context/base/file-job.lua
+++ b/tex/context/base/file-job.lua
@@ -234,21 +234,23 @@ local suffixes = {
}
local function useanyfile(name,onlyonce)
- local s = suffixes[file.suffix(name)]
+ local s = suffixes[suffixonly(name)]
if s then
- s(removesuffix(name),onlyonce)
+ -- s(removesuffix(name),onlyonce)
+ s(name,onlyonce) -- so, first with suffix, then without
else
usetexfile(name,onlyonce) -- e.g. ctx file
---~ resolvers.readfilename(name)
+ -- resolvers.readfilename(name)
end
end
commands.useanyfile = useanyfile
function resolvers.jobs.usefile(name,onlyonce,notext)
- local s = suffixes[file.suffix(name)]
+ local s = suffixes[suffixonly(name)]
if s then
- s(removesuffix(name),onlyonce,notext)
+ -- s(removesuffix(name),onlyonce,notext)
+ s(name,onlyonce,notext) -- so, first with suffix, then without
end
end