bug-lilypond
[Top][All Lists]
Advanced

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

Re: Issue 1428 in lilypond: \book cannot contain \bookpart identifier


From: lilypond
Subject: Re: Issue 1428 in lilypond: \book cannot contain \bookpart identifier
Date: Fri, 03 Dec 2010 09:41:21 +0000


Comment #1 on issue 1428 by percival.music.ca: \book cannot contain \bookpart identifier
http://code.google.com/p/lilypond/issues/detail?id=1428

At line 275 of lily-parser.cc,
  parser->lexer_->lookup_identifier ("$papers")
is #<undefined>. A trivial fix for this would be to check that isn't not undefined (just like we currently check that ! scm_is_null (...)), but that might not be the best solution.

Here's how you can see this for yourself:


diff --git a/lily/lily-parser.cc b/lily/lily-parser.cc
index e0722fd..76b1b1b 100644
--- a/lily/lily-parser.cc
+++ b/lily/lily-parser.cc
@@ -271,6 +271,7 @@ void
 pop_paper (Lily_parser *parser)
 {
   if (! scm_is_null (parser->lexer_->lookup_identifier ("$papers")))
+    ly_display_scm (parser->lexer_->lookup_identifier ("$papers"));
     parser->lexer_->set_identifier (ly_symbol2scm ("$papers"),
scm_cdr (parser->lexer_->lookup_identifier
 }







reply via email to

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