Hi Hans,

I see that you've released the LuaMetaTeX source code, yay! I'm really
impressed with how easy it is to build, and with how quickly it builds.

Can you please apply this patch to the LuaMetaTeX source code:

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
diff --git source/lua/lmtnodelib.c source/lua/lmtnodelib.c
index ff98a70..1aade86 100644
--- source/lua/lmtnodelib.c
+++ source/lua/lmtnodelib.c
@@ -6557,10 +6557,7 @@ static int nodelib_common_getfield(lua_State *L, int 
direct, halfword n)
                             break;
                         case insert_node:
                             if (lua_key_eq(s, index)) {
-                                halfword index = lmt_tohalfword(L, 3);
-                                if (tex_valid_insert_id(index)) {
-                                    insert_index(n) = index;
-                                }
+                                lua_pushinteger(L, insert_index(n));
                             } else if (lua_key_eq(s, cost)) {
                                 lua_pushinteger(L, insert_float_cost(n));
                             } else if (lua_key_eq(s, depth)) {
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

This should fix the following minimal example:

   \startluacode
       local insert = node.new "insert"
       insert.index = 4
       print(insert.index)
   \stopluacode
   
Thanks,
-- Max
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

Reply via email to