]> git.donarmstrong.com Git - lilypond.git/commitdiff
Issue 3952: Automatically sort props within each grob-interface.
authorMark Polesky <markpolesky@yahoo.com>
Tue, 17 Jun 2014 22:11:31 +0000 (15:11 -0700)
committerMark Polesky <markpolesky@yahoo.com>
Tue, 17 Jun 2014 22:13:40 +0000 (15:13 -0700)
Ensures that "User settable properties" and "Internal properties"
are listed in sorted order in the "Graphical Object Interfaces"
section of the IR.

scm/document-backend.scm

index d9ec2b00b50afe1e7c674dcb1197dde97dc36c1a..406f09aacbbd6820b05686e072ce2806b142c81f 100644 (file)
@@ -176,6 +176,16 @@ node."
      (cons (cons key val)  prior))
    '() (ly:all-grob-interfaces)))
 
+;; sort user-settable and internal props within each grob-interface
+(set! interface-description-alist
+  (map! (lambda (iface-desc)
+          (let* ((key-name-docstr (list-head iface-desc 3))
+                 (props           (list-tail iface-desc 3))
+                 (sorted-props    (list (sort (car props) ly:symbol-ci<?))))
+            (append key-name-docstr sorted-props)))
+        interface-description-alist))
+
+;; sort list of grob interfaces
 (set! interface-description-alist
       (sort interface-description-alist ly:alist-ci<?))