]> git.donarmstrong.com Git - lilypond.git/commitdiff
doc: update make-simple-closure example in Extending (Issue 3993)
authorJanek Warchoł <lemniskata.bernoullego@gmail.com>
Thu, 10 Jul 2014 19:59:56 +0000 (21:59 +0200)
committerJanek Warchoł <lemniskata.bernoullego@gmail.com>
Fri, 11 Jul 2014 06:06:47 +0000 (08:06 +0200)
After improvements in Self_alignment_interface::aligned_on_parent
(in particular after fixing issue 3254) it was possible to simplify
default X-offset values for several grobs, so that they didn't have
to use make-simple-closure (see e.g. commit 1d765020f8679958). This
made an example in Extending 2.7 obsolete, so I'm replacing it with
one that still uses make-simple-closure.

Documentation/extending/programming-interface.itely

index 85c0b3539bea0a6438d285e03a70d5058b4e4a6d..e997085da31ddea074f76e43c24c665cfca5cc9e 100644 (file)
@@ -1265,21 +1265,21 @@ can by found in the Internals Reference or the file 'define-grobs.scm':
 
 If routines with multiple arguments must be called, the current grob
 can be inserted with a grob closure.  Here is a setting from
-@code{AccidentalSuggestion},
+@code{RehearsalMark},
 
 @example
 `(X-offset .
-  ,(ly:make-simple-closure
-    `(,+
+   ,(ly:make-simple-closure
+     `(,+
         ,(ly:make-simple-closure
-           (list ly:self-alignment-interface::centered-on-x-parent))
-      ,(ly:make-simple-closure
-           (list ly:self-alignment-interface::x-aligned-on-self)))))
+          (list ly:break-alignable-interface::self-align-callback))
+        ,(ly:make-simple-closure
+          (list ly:self-alignment-interface::x-aligned-on-self)))))
 @end example
 
 @noindent
-In this example, both @code{ly:self-alignment-interface::x-aligned-on-self} and
-@code{ly:self-alignment-interface::centered-on-x-parent} are called
+In this example, both @code{ly:break-alignable-interface::self-align-callback} and
+@code{ly:self-alignment-interface::x-aligned-on-self} are called
 with the grob as argument.  The results are added with the @code{+}
 function.  To ensure that this addition is properly executed, the whole
 thing is enclosed in @code{ly:make-simple-closure}.