lilypond-user
[Top][All Lists]
Advanced

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

Re: Defining 'not-last-page'


From: Matthew Collett
Subject: Re: Defining 'not-last-page'
Date: Sat, 16 Jul 2011 10:06:14 +1200

On 15/07/2011, at 11:07 pm, Matthew Collett wrote:

> I still don't understand why I can use 'last-page' (defined in 
> titling-init.ly) with no problem, but cannot use 'book-last-page?' (also 
> defined in titling-init.ly) unless I redefine it myself.

Some further investigation:

'titling-init' is included by 'paper-defaults-init' which is included by 
'declarations-init' which is included by 'init'.

Adding an explicit (and apparently redundant) 
\include "titling-init.ly"
to my original file solves the problem; that is, it makes 'book-last-page?' 
available for use as expected.

Going up one level, and instead saying
\include "paper-defaults-init.ly"
makes the original problem reappear ('ERROR: Unbound variable: 
book-last-page?').

Is there a rule in Scheme that names ending in '?' have restricted scope?  Or 
is there some other reason why nesting the inclusion makes some names disappear 
while others remain visible?

Best wishes,
Matthew


reply via email to

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