View Issue Details

IDProjectCategoryView StatusLast Update
0000310luatexluatex bugpublic2009-12-24 17:13
ReporterPawel Jackowski Assigned ToTaco  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Target Version0.50.0 
Summary0000310: pdf table not writable
DescriptionAssignments to pdf table have no effect.

pdf.whatever = true
assert(pdf.whatever)


The assertion fails since rev3206 (introduction of pdf.pdfinfo and others; before that pdf table had no __newindex metamethod).
Additional Informationchecked on rev3282
TagsNo tags attached.

Activities

Pawel Jackowski

2009-12-22 02:52

reporter   ~0000380

Last edited: 2009-12-22 02:53

Since this needs touching pdf metatable anyway, two thoughts for your consideration.

1. New pdf table fields (pdf.pdftrailer, pdf.pdfinfo, pdf.pdfcatalog, pdf.pdfnames) actually do nothing more but assign internal toks lists. As we know, their pdftex equivalents weren't generic toks lists, but perhaps they should for interface consistency? And perhaps they should live in the same place as pdfpageattr and companion?

2. Fontmap-related write-only fields (pdf.mapline, pdf.mapfile) could actually be static functions

pdf.mapline "+font Font ..."
pdf.mapfile "pdftex.map"


as there is no advantage of having them dynamic. Then one can local them

local mapline = pdf.mapline


avoiding unnecessary overhead of metacall on every access to pdf table.

Taco

2009-12-24 11:39

administrator   ~0000384

Writing to and reading from the pdf table is restored in #3290.

Those other points are not bad, but need a bit more thinking.

Issue History

Date Modified Username Field Change
2009-12-22 01:00 Pawel Jackowski New Issue
2009-12-22 02:52 Pawel Jackowski Note Added: 0000380
2009-12-22 02:53 Pawel Jackowski Note Edited: 0000380
2009-12-24 08:10 Taco Assigned To => Taco
2009-12-24 08:10 Taco Status new => assigned
2009-12-24 08:10 Taco Target Version => 0.50.0
2009-12-24 11:39 Taco Status assigned => resolved
2009-12-24 11:39 Taco Resolution open => fixed
2009-12-24 11:39 Taco Note Added: 0000384
2009-12-24 17:13 Taco Status resolved => closed