[latex3-commits] [git/LaTeX3-latex3-latex3] luaintarray: Adjust to some expl3 conventions (5fea473b0)

Marcel Fabian Krüger tex at 2krueger.de
Sat Nov 13 09:34:02 CET 2021


Repository : https://github.com/latex3/latex3
On branch  : luaintarray
Link       : https://github.com/latex3/latex3/commit/5fea473b09658b4200abf3142f1b4884980f5bc8

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

commit 5fea473b09658b4200abf3142f1b4884980f5bc8
Author: Marcel Fabian Krüger <tex at 2krueger.de>
Date:   Sat Nov 13 09:23:39 2021 +0100

    Adjust to some expl3 conventions


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

5fea473b09658b4200abf3142f1b4884980f5bc8
 l3kernel/l3luatex.dtx | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/l3kernel/l3luatex.dtx b/l3kernel/l3luatex.dtx
index ce954e6f2..d28f3b9e9 100644
--- a/l3kernel/l3luatex.dtx
+++ b/l3kernel/l3luatex.dtx
@@ -689,7 +689,8 @@ end
 %
 % We provide some kernel-internal helpers for this. They will only be available if
 % \texttt{luatexbase} is available. This is not a big restriction though, because
-% ConTeXt (which does not use \texttt{luatexbase}) does not load expl3 in the format.
+% Con\TeX{}t (which does not use \texttt{luatexbase}) does not load \pkg{expl3}
+% in the format.
 %
 %    \begin{macrocode}
 local register_luadata, get_luadata
@@ -710,7 +711,7 @@ if luatexbase then
 
     function register_luadata(name, func)
       if luadata[name] then
-        error(string.format("LaTeX3 error: data name %q already in use", name))
+        error(format("LaTeX error: data name %q already in use", name))
       end
       luadata[name] = func
       luadata_order[#luadata_order + 1] = func and name
@@ -726,11 +727,11 @@ luatexbase.add_to_callback("pre_dump", function()
         local str = "return {"
         for i=1, #luadata_order do
           local name = luadata_order[i]
-          str = string.format('%s[%q]=%s,', str, name, luadata[name]())
+          str = format('%s[%q]=%s,', str, name, luadata[name]())
         end
         lua.bytecode[register] = assert(load(str .. "}"))
       end
-    end, "latex3.luadata")
+    end, "ltx.luadata")
   else
 %    \end{macrocode}
 %





More information about the latex3-commits mailing list.