texlive[45780]

commits+karl at tug.org commits+karl at tug.org
Tue Nov 14 00:49:26 CET 2017


Revision: 45780
          http://tug.org/svn/texlive?view=revision&revision=45780
Author:   karl
Date:     2017-11-14 00:49:26 +0100 (Tue, 14 Nov 2017)
Log Message:
-----------
context-filter (13nov17)

Modified Paths:
--------------
    trunk/Master/texmf-dist/tex/context/third/filter/t-filter.mkiv

Modified: trunk/Master/texmf-dist/tex/context/third/filter/t-filter.mkiv
===================================================================
--- trunk/Master/texmf-dist/tex/context/third/filter/t-filter.mkiv	2017-11-13 23:49:06 UTC (rev 45779)
+++ trunk/Master/texmf-dist/tex/context/third/filter/t-filter.mkiv	2017-11-13 23:49:26 UTC (rev 45780)
@@ -400,18 +400,16 @@
      %               [\externalfilter at 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 at check_writable \externalfilter at input_file
-         \savebuffer[\externalfilterparameter{\c!buffer\c!before},
-                     \externalfilter at buffer_name,
-                     \externalfilterparameter{\c!buffer\c!after}]
-                    [\externalfilter at id]
-         \startluacode
-           %% -- On Windows, os.rename does not overwrite files :( So we copy and delete files
-           file.copy("\jobname-\externalfilter at id.\f!temporaryextension", "\externalfilter at input_file")
-           os.remove("\jobname-\externalfilter at id.\f!temporaryextension")
-         \stopluacode
-
+         \savebuffer
+           [
+              \c!list={\externalfilterparameter{\c!buffer\c!before},
+                       \externalfilter at buffer_name,
+                       \externalfilterparameter{\c!buffer\c!after}},
+              \c!file={\externalfilter at input_file},
+              \c!prefix=\v!no,
+            ]
      \externalfilter at execute_filter
      \externalfilter at read_processed_file
      \iftraceexternalfilters \else 



More information about the tex-live-commits mailing list