On Fri, 2009-08-14 at 19:00 +0200, Michael Käppler wrote:
> Hmm...there's a new problem I don't understand.
> If I set a breakpoint in lily-parser.cc:225 (get_paper) and call 
> normalize() from there, it seems that all "default" variables which are 
> set in paper-defaults-init.ly aren't accessible.
> What's the reason for this? Are the *.ly-initfiles parsed later?

get_paper is called more than once for each paper block. The first time
is probably from parser.yy:847, which actually _creates_ the first paper
block (so no variables have been parsed at all). Perhaps a better place
for normalize() would be after parser.yy:830, where it will only be
called once for each paper block.

Disclaimer: I don't think I've ever actually touched the parser and I
don't really know much about that whole part of lilypond.

HTH,
Joe




_______________________________________________
lilypond-devel mailing list
lilypond-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-devel

Reply via email to