[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lilypond-bug
Subject:    Re: Issue 1427 in lilypond: \bookpart stored in a variable can't contain markup
From:       lilypond () googlecode ! com
Date:       2010-11-24 15:57:57
Message-ID: 1-9567054385019064696-10293742774341945111-lilypond=googlecode.com () googlecode ! com
[Download RAW message or body]


Comment #1 on issue 1427 by PhilEHolmes: \bookpart stored in a variable  
can't contain markup
http://code.google.com/p/lilypond/issues/detail?id=1427

Neil Puttock commented:

The same happens for page-markers (i.e., \break, \pageBreak, \label, etc.):

mypart = \bookpart {
   \label #'foo
}

% also crashes
\bookpart { \mypart }

It seems that when a book is cloned, the copy constructor assumes all
elements in the original book to be scores, which is unsafe: the
elements can also be markup or page-markers:

#(display (ly:score? (car (ly:book-scores mypart))))

-> #f





[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic