diff options
Diffstat (limited to 'Build/source/texk/web2c/luatexdir/tex/mainbody.w')
-rw-r--r-- | Build/source/texk/web2c/luatexdir/tex/mainbody.w | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/Build/source/texk/web2c/luatexdir/tex/mainbody.w b/Build/source/texk/web2c/luatexdir/tex/mainbody.w index faa6e1992da..4d38b9d4a47 100644 --- a/Build/source/texk/web2c/luatexdir/tex/mainbody.w +++ b/Build/source/texk/web2c/luatexdir/tex/mainbody.w @@ -230,12 +230,6 @@ str_number get_luatexrevision(void) return luatex_revision; } -int get_luatex_date_info(void) -{ - return luatex_date_info; /* todo, silly value */ -} - - @ This is it: the part of \TeX\ that executes all those procedures we have written. @@ -524,7 +518,18 @@ void close_files_and_terminate(void) /* rubish, these pdf arguments, passed, needs to be fixed, e.g. with a dummy in dvi */ wrapup_backend(); /* Close {\sl Sync\TeX} file and write status */ - synctexterminate(log_opened_global); /* Let the {\sl Sync\TeX} controller close its files. */ + synctexterminate(log_opened_global); + /* + The following is needed because synctex removes files and we want to keep them which + means renaming a temp file .. we can't bypass the terminate because it might do mem + cleanup. + */ + if (synctex_get_mode() > 0) { + callback_id = callback_defined(finish_synctex_callback); + if (callback_id > 0) { + run_callback(callback_id, "->"); + } + } free_text_codes(); free_math_codes(); if (log_opened_global) { |