diff options
author | Karl Berry <karl@freefriends.org> | 2017-11-13 23:49:26 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2017-11-13 23:49:26 +0000 |
commit | 3e9eb577128888733e2e1b1a34f7163c43b6331f (patch) | |
tree | 8cc0584fc7dbed832bf707b86830eb343b68b8c1 /Master/texmf-dist/tex/context | |
parent | 4a030fcab21d7bf8937b305f0f43c69d1da2d3d3 (diff) |
context-filter (13nov17)
git-svn-id: svn://tug.org/texlive/trunk@45780 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/context')
-rw-r--r-- | Master/texmf-dist/tex/context/third/filter/t-filter.mkiv | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/Master/texmf-dist/tex/context/third/filter/t-filter.mkiv b/Master/texmf-dist/tex/context/third/filter/t-filter.mkiv index 74bad5e5119..255581f41ea 100644 --- a/Master/texmf-dist/tex/context/third/filter/t-filter.mkiv +++ b/Master/texmf-dist/tex/context/third/filter/t-filter.mkiv @@ -400,18 +400,16 @@ % [\externalfilter@input_file]} % % but using this method we cannot save the file in another directory. - % So, we simply write the file in the current directory and then move it. + % So, we use the key-value interface for \savebuffer. \externalfilter@check_writable \externalfilter@input_file - \savebuffer[\externalfilterparameter{\c!buffer\c!before}, - \externalfilter@buffer_name, - \externalfilterparameter{\c!buffer\c!after}] - [\externalfilter@id] - \startluacode - %% -- On Windows, os.rename does not overwrite files :( So we copy and delete files - file.copy("\jobname-\externalfilter@id.\f!temporaryextension", "\externalfilter@input_file") - os.remove("\jobname-\externalfilter@id.\f!temporaryextension") - \stopluacode - + \savebuffer + [ + \c!list={\externalfilterparameter{\c!buffer\c!before}, + \externalfilter@buffer_name, + \externalfilterparameter{\c!buffer\c!after}}, + \c!file={\externalfilter@input_file}, + \c!prefix=\v!no, + ] \externalfilter@execute_filter \externalfilter@read_processed_file \iftraceexternalfilters \else |