lilypond-user
[Top][All Lists]
Advanced

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

Re: Solution for including a file only once


From: Tim McNamara
Subject: Re: Solution for including a file only once
Date: Wed, 10 Feb 2010 23:16:46 -0600


On Feb 10, 2010, at 10:15 PM, Michael J. O'Donnell wrote:

My proposed solution behaves as though you had written

     { \include "MyFile.ly" }

rather than the desired

     \include "MyFile.ly"

Lots of simple debugging code works fine, but in the usual case where
MyFile.ly is full of variable definitions, those definitions are not
parsed in the outermost level, and they get syntactic errors.

I have been hunting, so far in vain, for the code implementing \include,
in the hope that I can tweak that code to get the right behavior.

A general way of switching to the outermost parsing layer would also
possibly solve the problem, but I can't find that either. Still hunting,
and of course ready to take any hint.

My hint would be to send this to the developer's list rather that the user's list, even though there is of course a great deal of overlap.





reply via email to

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