X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=ly%2Finit.ly;h=20416624c2f54c73ab03b9ef4246d42571f3d914;hb=058de21b0e38e7202b15a3f980cbda9daf96f0df;hp=d1923659f981c3a90e8e3a1447a921a470b68186;hpb=d664f5a7153ec2b1a1c4c9fba2d2174bf3140695;p=lilypond.git diff --git a/ly/init.ly b/ly/init.ly index d1923659f9..20416624c2 100644 --- a/ly/init.ly +++ b/ly/init.ly @@ -12,12 +12,15 @@ #(ly:set-option 'old-relative #f) #(define toplevel-scores (list)) #(define toplevel-bookparts (list)) -#(define output-count 0) #(define $defaultheader #f) +#(define $current-book #f) +#(define $current-bookpart #f) #(define version-seen #f) -#(define expect-error #f) +#(define expect-error #f) #(define output-empty-score-list #f) #(define output-suffix #f) +#(define book-filename #f) +#(define book-output-suffix #f) #(use-modules (scm clip-region)) \maininput %% there is a problem at the end of the input file @@ -54,8 +57,10 @@ (set! toplevel-scores (list)) (book-handler parser book))) ((or (pair? toplevel-scores) output-empty-score-list) - (book-handler parser (apply ly:make-book $defaultpaper - $defaultheader toplevel-scores))))) + (let ((book (apply ly:make-book $defaultpaper + $defaultheader toplevel-scores))) + (set! toplevel-scores (list)) + (book-handler parser book))))) #(if (eq? expect-error (ly:parser-has-error? parser)) (ly:parser-clear-error parser)