[latex3-commits] [git/LaTeX3-latex3-l3build] master: Use "func" as "function" is reserved (f02ce1e)

Joseph Wright joseph.wright at morningstar2.co.uk
Mon Feb 17 15:28:28 CET 2020


Repository : https://github.com/latex3/l3build
On branch  : master
Link       : https://github.com/latex3/l3build/commit/f02ce1e27cb1d7308eb7c5596f932af2bb2d3f1c

>---------------------------------------------------------------

commit f02ce1e27cb1d7308eb7c5596f932af2bb2d3f1c
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Mon Feb 17 14:28:28 2020 +0000

    Use "func" as "function" is reserved


>---------------------------------------------------------------

f02ce1e27cb1d7308eb7c5596f932af2bb2d3f1c
 l3build-typesetting.lua | 2 +-
 l3build.dtx             | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/l3build-typesetting.lua b/l3build-typesetting.lua
index 2120194..2886313 100644
--- a/l3build-typesetting.lua
+++ b/l3build-typesetting.lua
@@ -142,7 +142,7 @@ local function typesetpdf(file,dir)
   local fn = typeset
   local cmd = typesetexe .. typesetopts
   if specialtypesetting and specialtypesetting[file] then
-    fn = specialtypesetting[file].function or fn
+    fn = specialtypesetting[file].func or fn
     cmd = specialtypesetting[file].cmd or cmd
   end
   local errorlevel = fn(file,dir,cmd)
diff --git a/l3build.dtx b/l3build.dtx
index f54423f..d89212f 100644
--- a/l3build.dtx
+++ b/l3build.dtx
@@ -1406,7 +1406,7 @@
 % To allow non-standard typesetting combinations, for example per-file
 % choice of engines, the table \var{specialtypesetting} may be used.
 % This is a table with one entry per file. Each entry is itself a table,
-% and these contain a list of engines and settings for |cmd| and |function|.
+% and these contain a list of engines and settings for |cmd| and |func|.
 % For example, to choose to use \LuaTeX{} for one file when \var{typesetexe}
 % is |pdftex|
 % \begin{verbatim}
@@ -1414,7 +1414,7 @@
 % \end{verbatim}
 % or to select an entirely different typesetting function
 % \begin{verbatim}
-% specialtypesetting.foo = {function = typeset_foo}
+% specialtypesetting.foo = {func = typeset_foo}
 % \end{verbatim}
 %
 % \subsection{Automated upload to CTAN}





More information about the latex3-commits mailing list.