]> git.donarmstrong.com Git - lilypond.git/blobdiff - ly/toc-init.ly
Issue 5148/1: Various chain-assoc-get -> #:properties
[lilypond.git] / ly / toc-init.ly
index ef1f18fe8b2497dbaa9a0bb4fcc99e6e63920880..ad7c64b72c5e421876ed74796e6a9ca37ba57921 100644 (file)
@@ -1,4 +1,4 @@
-\version "2.16.0"
+\version "2.19.22"
 
 %% defined later, in a closure
 #(define-public (add-toc-item! markup-symbol text)
@@ -36,13 +36,14 @@ tocItemWithDotsMarkup = \markup \fill-with-pattern #1 #RIGHT .
   \fromproperty #'toc:text \fromproperty #'toc:page
 
 #(define-markup-list-command (table-of-contents layout props) ()
+  #:properties ((baseline-skip))
   ( _i "Outputs the table of contents, using the paper variable
 @code{tocTitleMarkup} for its title, then the list of lines
 built using the @code{tocItem} music function
 Usage: @code{\\markuplist \\table-of-contents}" )
   (cons (interpret-markup layout props
                           (ly:output-def-lookup layout 'tocTitleMarkup))
-        (space-lines (chain-assoc-get 'baseline-skip props)
+        (space-lines baseline-skip
                     (map (lambda (toc-item)
                            (let ((label (car toc-item))
                                  (toc-markup (cadr toc-item))
@@ -58,7 +59,7 @@ Usage: @code{\\markuplist \\table-of-contents}" )
                          (toc-items)))))
 
 tocItem =
-#(define-music-function (parser location text) (markup?)
+#(define-music-function (text) (markup?)
    "Add a line to the table of content, using the @code{tocItemMarkup} paper
 variable markup"
    (add-toc-item! 'tocItemMarkup text))