X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=ly%2Ftitling-init.ly;h=f397ad6bd90177b34de35c2f28ba5d96d8ce15f6;hb=cee6cea4ed55eb4fa1f9d83c997ebc19744a6e1a;hp=da2bf166c94e063ec5b419b2bf38cc5325ce7603;hpb=d0b51cc48c2d66efbd1cbdc682dd622e7a2a93f9;p=lilypond.git diff --git a/ly/titling-init.ly b/ly/titling-init.ly index da2bf166c9..f397ad6bd9 100644 --- a/ly/titling-init.ly +++ b/ly/titling-init.ly @@ -1,5 +1,8 @@ \version "2.16.0" +#(if (guile-v2) + (use-modules (ice-9 curried-definitions))) + slashSeparator = \markup { \center-align \vcenter \combine @@ -73,14 +76,8 @@ scoreTitleMarkup = \markup { \column { #(define (book-first-page? layout props) "Return #t iff the current page number, got from @code{props}, is the book first one." - (define (ancestor layout) - "Return the topmost layout ancestor" - (let ((parent (ly:output-def-parent layout))) - (if (not (ly:output-def? parent)) - layout - (ancestor parent)))) (= (chain-assoc-get 'page:page-number props -1) - (ly:output-def-lookup (ancestor layout) 'first-page-number))) + (book-first-page layout props))) #(define (book-last-page? layout props) "Return #t iff the current page number, got from @code{props}, is the