{"action":"created","issue":{"url":"https://api.github.com/repos/josephwright/ltluatexsupp/issues/2","labels_url":"https://api.github.com/repos/josephwright/ltluatexsupp/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/josephwright/ltluatexsupp/issues/2/comments","events_url":"https://api.github.com/repos/josephwright/ltluatexsupp/issues/2/events","html_url":"https://github.com/josephwright/ltluatexsupp/issues/2","id":109621471,"number":2,"title":"user whatsit code doesn't work","user":{"login":"eroux","id":60868,"avatar_url":"https://avatars.githubusercontent.com/u/60868?v=3","gravatar_id":"","url":"https://api.github.com/users/eroux","html_url":"https://github.com/eroux","followers_url":"https://api.github.com/users/eroux/followers","following_url":"https://api.github.com/users/eroux/following{/other_user}","gists_url":"https://api.github.com/users/eroux/gists{/gist_id}","starred_url":"https://api.github.com/users/eroux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eroux/subscriptions","organizations_url":"https://api.github.com/users/eroux/orgs","repos_url":"https://api.github.com/users/eroux/repos","events_url":"https://api.github.com/users/eroux/events{/privacy}","received_events_url":"https://api.github.com/users/eroux/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-03T12:43:22Z","updated_at":"2015-10-03T12:51:01Z","closed_at":null,"body":"Porting [gregorio](https://github.com/gregorio-project/gregorio/tree/master/tex) to the new LaTeX format, it seems the whatsit node is buggy. The line\r\n\r\n    local create_marker = luatexbase.new_user_whatsit('marker', 'gregoriotex')\r\n\r\nfails with\r\n\r\n```\r\n\r\nLua module: gregoriotex 2015/08/26 4.0.0-beta2 GregorioTeX module.\r\nCustom whatsit marker = 1\r\n! LuaTeX error [\\directlua]:1: attempt to call global 'newnode' (a nil value)\r\nstack traceback:\r\n        [\\directlua]:1: in function 'new_user_whatsit'\r\n        ...io-test/var/texmf/tex/luatex/gregoriotex/gregoriotex.lua:89: in main chunk\r\n        [C]: in function 'require'\r\n        [\\directlua]:1: in main chunk.\r\n\\RequireLuaModule #1->\\directlua {require(\"#1\")}\r\n                                                \\@gobbleoptarg \r\nl.126 \\RequireLuaModule{gregoriotex}\r\n                                  %\r\n? \r\n! Emergency stop.\r\n```\r\n\r\nand looking at the code of [luatexbase](https://github.com/josephwright/ltluatexsupp/blob/master/luatexbase/luatexbase.dtx), `newnode` is indeed used without being defined. I think this is also the case of `copynode` and maybe a few others."},"comment":{"url":"https://api.github.com/repos/josephwright/ltluatexsupp/issues/comments/145245940","html_url":"https://github.com/josephwright/ltluatexsupp/issues/2#issuecomment-145245940","issue_url":"https://api.github.com/repos/josephwright/ltluatexsupp/issues/2","id":145245940,"user":{"login":"davidcarlisle","id":1268738,"avatar_url":"https://avatars.githubusercontent.com/u/1268738?v=3","gravatar_id":"","url":"https://api.github.com/users/davidcarlisle","html_url":"https://github.com/davidcarlisle","followers_url":"https://api.github.com/users/davidcarlisle/followers","following_url":"https://api.github.com/users/davidcarlisle/following{/other_user}","gists_url":"https://api.github.com/users/davidcarlisle/gists{/gist_id}","starred_url":"https://api.github.com/users/davidcarlisle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidcarlisle/subscriptions","organizations_url":"https://api.github.com/users/davidcarlisle/orgs","repos_url":"https://api.github.com/users/davidcarlisle/repos","events_url":"https://api.github.com/users/davidcarlisle/events{/privacy}","received_events_url":"https://api.github.com/users/davidcarlisle/received_events","type":"User","site_admin":false},"created_at":"2015-10-03T12:51:01Z","updated_at":"2015-10-03T12:51:01Z","body":"On 3 October 2015 at 13:43, Elie Roux <notifications@github.com> wrote:\n\n> Porting gregorio\n> <https://github.com/gregorio-project/gregorio/tree/master/tex> to the new\n> LaTeX format, it seems the whatsit node is buggy. The line\n>\n> local create_marker = luatexbase.new_user_whatsit('marker', 'gregoriotex')\n>\n> fails with\n>\n>\n> Lua module: gregoriotex 2015/08/26 4.0.0-beta2 GregorioTeX module.\n> Custom whatsit marker = 1\n> ! LuaTeX error [\\directlua]:1: attempt to call global 'newnode' (a nil value)\n> stack traceback:\n>         [\\directlua]:1: in function 'new_user_whatsit'\n>         ...io-test/var/texmf/tex/luatex/gregoriotex/gregoriotex.lua:89: in main chunk\n>         [C]: in function 'require'\n>         [\\directlua]:1: in main chunk.\n> \\RequireLuaModule #1->\\directlua {require(\"#1\")}\n>                                                 \\@gobbleoptarg\n> l.126 \\RequireLuaModule{gregoriotex}\n>                                   %\n> ?\n> ! Emergency stop.\n>\n> and looking at the code of luatexbase\n> <https://github.com/josephwright/ltluatexsupp/blob/master/luatexbase/luatexbase.dtx>,\n> newnode is indeed used without being defined. I think this is also the\n> case of copynode and maybe a few others.\n>\n>\nsorry will fix asap.\n"}}