[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Re: feature-request / doc-actualization (right-margin)

From: Joe Neeman
Subject: Re: [PATCH] Re: feature-request / doc-actualization (right-margin)
Date: Sun, 16 Aug 2009 11:56:42 +1000

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 (get_paper) and call 
> normalize() from there, it seems that all "default" variables which are 
> set in 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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]