diff options
author | Karl Berry <karl@freefriends.org> | 2013-04-08 00:43:40 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2013-04-08 00:43:40 +0000 |
commit | 824f7b0903de8ad7f6ee3d7656005e4c59155e06 (patch) | |
tree | abfc8673ef9916f3ab7074e811207384c301492b /Master/texmf-dist/tex/context/base/file-syn.lua | |
parent | 689aefb0727676ed3cddf331337b4be226495e72 (diff) |
context import for TL13, from www.pragma-ade.com/context/beta/cont-tmf.zip
git-svn-id: svn://tug.org/texlive/trunk@29731 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/context/base/file-syn.lua')
-rw-r--r-- | Master/texmf-dist/tex/context/base/file-syn.lua | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Master/texmf-dist/tex/context/base/file-syn.lua b/Master/texmf-dist/tex/context/base/file-syn.lua index 1be9fb4b12f..8d913bb3769 100644 --- a/Master/texmf-dist/tex/context/base/file-syn.lua +++ b/Master/texmf-dist/tex/context/base/file-syn.lua @@ -11,6 +11,9 @@ local report_files = logs.reporter("files") environment.filesynonyms = environment.filesynonyms or { } local filesynonyms = environment.filesynonyms +local settings_to_array = utilities.parsers.settings_to_array +local findfile = resolvers.findfile + storage.register("environment/filesynonyms", filesynonyms, "environment.filesynonyms") local function truefilename(name) @@ -37,9 +40,9 @@ function commands.definefilesynonym(name,realname) end function commands.definefilefallback(name,alternatives) - local names = utilities.parser.settings_to_array(alternatives) + local names = settings_to_array(alternatives) for i=1,#names do - local realname = resolvers.findfile(names[i]) + local realname = findfile(names[i]) if realname ~= "" then filesynonyms[name] = realname break |