]> git.donarmstrong.com Git - lilypond.git/commitdiff
Docs: IR 1 Music definitions: Auto-sort various elements.
authorMark Polesky <markpolesky@yahoo.com>
Sun, 19 Jul 2009 00:32:56 +0000 (17:32 -0700)
committerMark Polesky <markpolesky@yahoo.com>
Sun, 19 Jul 2009 06:14:01 +0000 (23:14 -0700)
scm/document-music.scm

index 38960ee53102e5720c8e9d2a19267b2b26dfc6d2..0a33c8a2f990cea7e8fdd83bf82d33d63d366bd7 100644 (file)
@@ -53,9 +53,8 @@
        (symbol->string (car entry))
        "} is in music objects of type "
        (human-listify
-       (sort
-        (map (lambda (x) (ref-ify (symbol->string x)))
-             (cdr entry)) ly:string-ci<?))
+       (map ref-ify (sort (map symbol->string (cdr entry))
+                          ly:string-ci<?)))
        "."
 
        "\n\n"
@@ -93,7 +92,8 @@
                         (string-append
                          "\n\nEvent classes:\n"
                          (human-listify
-                          (map ref-ify (map symbol->string classes)))
+                          (map ref-ify (sort (map symbol->string classes)
+                                             ly:string-ci<?)))
                          "."
 
                          "\n\n"
      (description-list->texi
       (map
        (lambda (x) (property->texi 'music x props))
-       (map car props))
+       (sort (map car props) ly:symbol-ci<?))
       #t))))
 
 (define (music-object-doc obj)