Remove debugging instruction and reenable language handling

This commit is contained in:
Marcel Fabian Krüger 2021-11-08 10:52:34 +01:00
parent 285414dd23
commit 6b1369f962
2 changed files with 1 additions and 6 deletions

View File

@ -110,10 +110,7 @@ if initex then
local prepared = lua.prepared_code
prepared[1] = string.format("fixupluafunctions(%i)", predefined_luafunctions)
--[[
for i=0,0 do -- maybeFIXME: In practise only one language is preloaded in LuaTeX anyway
-- for i=0,tex.count[19] do -- Sometimes catches reserved language ids which are not used yet
-- for i=0,lang.new():id()-1 do -- lang.new():id() is always 0 in luametatex?!?
for i=0,status.languagestate.ptr do
local l = language.new(i)
local str = string.format("do \z
local l = language.new(%i)\z
@ -141,7 +138,6 @@ if initex then
end
prepared[#prepared+1] = str
end
]]
for i=2,#prepared do
if type(prepared[i]) ~= 'string' then
prepared[i] = assert(prepared[i]())

View File

@ -21,7 +21,6 @@ lmlt.luacmd("meaning", function()
token.skipnext()
token.skipnext()
stash = stash .. '\\protected '
print'protected'
end
end
token.scankeyword'macro:'