summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/context/base/mkiv/cont-run.lua
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/context/base/mkiv/cont-run.lua')
-rw-r--r--Master/texmf-dist/tex/context/base/mkiv/cont-run.lua48
1 files changed, 6 insertions, 42 deletions
diff --git a/Master/texmf-dist/tex/context/base/mkiv/cont-run.lua b/Master/texmf-dist/tex/context/base/mkiv/cont-run.lua
index 2634654fe77..9bd252e6098 100644
--- a/Master/texmf-dist/tex/context/base/mkiv/cont-run.lua
+++ b/Master/texmf-dist/tex/context/base/mkiv/cont-run.lua
@@ -142,7 +142,6 @@ trackers.register("sandbox.tracecalls",sandbox.logcalls)
trackers.register("sandbox.tracefiles",sandbox.logfiles)
local sandboxing = environment.arguments.sandbox
-local debugging = environment.arguments.debug
if sandboxing then
@@ -171,33 +170,15 @@ if sandboxing then
\let\normalprimitive\relax
]]
- debug = {
- traceback = traceback,
- }
-
- package.loaded.debug = debug
-
-elseif debugging then
-
- -- we keep debug
-
-else
-
- debug = {
- traceback = traceback,
- getinfo = getinfo,
- sethook = sethook,
- }
-
- package.loaded.debug = debug
-
end
-local preparejob preparejob = function() -- tricky: we need a hook for this
+local function processjob()
- local arguments = environment.arguments
+ environment.initializefilenames() -- todo: check if we really need to pre-prep the filename
- environment.lmtxmode = CONTEXTLMTXMODE
+ local arguments = environment.arguments
+ local suffix = environment.suffix
+ local filename = environment.filename -- hm, not inputfilename !
if arguments.nosynctex then
luatex.synctex.setup {
@@ -241,24 +222,6 @@ local preparejob preparejob = function() -- tricky: we need a hook for this
-- directives.enable("logs.errors",arguments.errors)
-- end
- preparejob = function() end
-
- job.prepare = preparejob
-
-end
-
-job.prepare = preparejob
-
-local function processjob()
-
- 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 !
-
- preparejob()
-
if not filename or filename == "" then
-- skip
elseif suffix == "xml" or arguments.forcexml then
@@ -322,6 +285,7 @@ local function processjob()
-- \writestatus{system}{processing as tex}
-- We have a regular tex file so no \starttext yet as we can
-- load fonts.
+
-- context.enabletrackers { "resolvers.*" }
context.input(filename)
-- context.disabletrackers { "resolvers.*" }