summaryrefslogtreecommitdiff
path: root/tex/context/base/mkiv/cont-run.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/mkiv/cont-run.lua')
-rw-r--r--tex/context/base/mkiv/cont-run.lua34
1 files changed, 18 insertions, 16 deletions
diff --git a/tex/context/base/mkiv/cont-run.lua b/tex/context/base/mkiv/cont-run.lua
index 3fef61672..eb0e143d5 100644
--- a/tex/context/base/mkiv/cont-run.lua
+++ b/tex/context/base/mkiv/cont-run.lua
@@ -190,9 +190,15 @@ else
end
-local preparejob preparejob = function() -- tricky: we need a hook for this
+local function processjob()
+
+ tokens.setters.macro("processjob","") -- make a
+
+ environment.initializefilenames() -- todo: check if we really need to pre-prep the filename
local arguments = environment.arguments
+ local suffix = environment.suffix
+ local filename = environment.filename -- hm, not inputfilename !
environment.lmtxmode = CONTEXTLMTXMODE
@@ -207,25 +213,21 @@ local preparejob preparejob = function() -- tricky: we need a hook for this
}
end
- preparejob = function() end
-
- job.prepare = preparejob
+ if CONTEXTLMTXMODE then
-end
+ local overloadmode = arguments.overloadmode
-job.prepare = preparejob
-
-local function processjob()
-
- tokens.setters.macro("processjob","") -- make a
-
- environment.initializefilenames() -- todo: check if we really need to pre-prep the filename
+ if overloadmode == "warning" then
+ overloadmode = 3 -- 5
+ elseif overloadmode == "error" then
+ overloadmode = 4 -- 6
+ else
+ overloadmode = tonumber(overloadmode) or 0
+ end
- local arguments = environment.arguments
- local suffix = environment.suffix
- local filename = environment.filename -- hm, not inputfilename !
+ tex.set("overloadmode",overloadmode)
- preparejob()
+ end
if not filename or filename == "" then
-- skip