[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Lilypond-auto] Issue 3126 in lilypond: Fails to return a book created i
From: |
lilypond |
Subject: |
[Lilypond-auto] Issue 3126 in lilypond: Fails to return a book created inside #{..#} substitution music function |
Date: |
Mon, 21 Jan 2013 08:48:35 +0000 |
Status: Accepted
Owner: ----
Labels: Type-Defect
New issue 3126 by address@hidden: Fails to return a book created
inside #{..#} substitution music function
http://code.google.com/p/lilypond/issues/detail?id=3126
Jay Anderson reported here:
http://lists.gnu.org/archive/html/bug-lilypond/2013-01/msg00123.html
that version 2.16.1 no longer returns a Lilypond book structure from within
a substitution music function.
David Kastrup responded to say that he has a fix ready to push.
These functions are documented here:
http://lilypond.org/doc/v2.17/Documentation/notation/substitution-function-syntax
Original post follows.
In 2.16.0 creating a book inside #{ #} returned the book. In 2.16.1 and
2.16.2 this is no longer always the case. Here's an example which fails:
============
\version "2.16.2"
makeBook =
#(define-void-function (parser location) ()
(let ((the-book
#{
\book
{
\include "header.ily"
\score
{
\new Staff
{
c'1
}
}
}
#}))
(display the-book) ;;; in 2.16.2 #<undefined>
(newline)
(print-book-with-defaults parser the-book)))
\makeBook
============
header.ily just contains:
============
\header
{
}
============
If you take the \include out or put the header inline it compiles, but that
defeats the purpose.
I just tried 2.17.10 and the behavior is fixed there.
-----Jay
- [Lilypond-auto] Issue 3126 in lilypond: Fails to return a book created inside #{..#} substitution music function,
lilypond <=