]> git.donarmstrong.com Git - lilypond.git/blobdiff - input/regression/apply-context.ly
Compile fix
[lilypond.git] / input / regression / apply-context.ly
index 89676aeffa26338731617a2ca40fdcfeea53db99..afa55683f3ac68de3fa05d86946723bca280cbbf 100644 (file)
@@ -1,10 +1,10 @@
 
-\version "2.6.0"
+\version "2.12.0"
 
 
 \header {
 
-texidoc = "With @code{\\applycontext}, @code{\\properties} can be modified
+texidoc = "With @code{\\applyContext}, @code{\\properties} can be modified
 procedurally. Applications include: checking bar numbers, smart
 octavation.
 
@@ -14,7 +14,7 @@ This example prints a bar-number during processing on stdout.
 
 }
 
-    \layout { raggedright= ##t }
+\layout { ragged-right= ##t }
 
 
 \relative c'' {
@@ -22,9 +22,9 @@ This example prints a bar-number during processing on stdout.
 
   %% todo: should put something interesting in the .tex output.
   
-  \applycontext
+  \applyContext
   #(lambda (tr)
-    (format #t "\nWe were called in barnumber ~a.\n"
+    (ly:progress "\nWe were called in bar number ~a.\n"
      (ly:context-property tr 'currentBarNumber)))
   c1 c1
 }