View Issue Details

IDProjectCategoryView StatusLast Update
0000671luatexluatex bugpublic2015-03-23 13:12
ReporterTaco Assigned ToTaco  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version0.71.0 
Summary0000671: token.expand is broken
DescriptionExample (from paul isambert)


I wanted to try some hack with token.create/token.expand, but I found that:

\def\A{1}
\directlua{
  local A = token.create("A")
  token.expand(A)
}


produces an "Undefined control sequence" error.
Tagstoken

Activities

oneiros

2012-08-05 20:30

developer   ~0000947

Confirmed with 0.71.0-2012052701 (rev 4356)

oneiros

2012-08-05 20:31

developer  

bug.log (1,211 bytes)   
This is LuaTeX, Version beta-0.71.0-2012052701 (rev 4356)  (format=luatex 2012.5.27)  5 AUG 2012 20:28
 restricted \write18 enabled.
**bug.tex
(./bug.tex
{vertical mode: \tracingstats}
{\tracingpages}
{\tracingoutput}
{\tracinglostchars}
{\tracingmacros}
{\tracingparagraphs}
{\tracingrestores}
{\showboxbreadth}
{\showboxdepth}
{\errorstopmode}

{\tracinggroups}
{\tracingifs}
{\tracingscantokens}
{\tracingnesting}
{\tracingassigns}
{into \tracingassigns=2}
{\def}
{changing \A=undefined}
{into \A=macro:->1}
{blank space  }
{\directlua}
{end-group character }}
! Undefined control sequence.
l.6 }
     
? x


Here is how much of LuaTeX's memory you used:
 7 strings out of 496556
 100000,35830 words of node,token memory allocated 167 words of node memory still in use:
   2 hlist, 1 rule, 1 glyph, 18 glue_spec, 1 dir nodes
   avail lists: 2:4,3:1,6:2
 2007 multiletter control sequences out of 65536+200000
 50 fonts using 2034573 bytes
 1i,0n,0p,38b,6s stack positions out of 5000i,500n,10000p,200000b,50000s
No pages of output.

PDF statistics: 0 PDF objects out of 1000 (max. 8388607)
 0 named destinations out of 1000 (max. 131072)
 1 words of extra memory for PDF output out of 10000 (max. 10000000)

bug.log (1,211 bytes)   

Hans Hagen

2015-03-23 13:12

manager   ~0001345

the old token interface is soon obsolete so there will be no more changes to it

Issue History

Date Modified Username Field Change
2011-06-02 13:16 Taco New Issue
2011-06-02 13:16 Taco Status new => assigned
2011-06-02 13:16 Taco Assigned To => Taco
2012-08-05 20:30 oneiros Note Added: 0000947
2012-08-05 20:30 oneiros Status assigned => acknowledged
2012-08-05 20:31 oneiros File Added: bug.log
2012-08-05 20:33 oneiros Tag Attached: token
2012-08-05 20:34 oneiros Reproducibility have not tried => always
2012-08-05 20:34 oneiros Product Version => 0.71.0
2015-03-23 13:12 Hans Hagen Note Added: 0001345
2015-03-23 13:12 Hans Hagen Status acknowledged => closed
2015-03-23 13:12 Hans Hagen Resolution open => fixed