]> git.donarmstrong.com Git - lilypond.git/commitdiff
Issue 4411: Omit unnecessary second argument to ly:make-unpure-pure-container, docume...
authorDavid Kastrup <dak@gnu.org>
Thu, 21 May 2015 13:27:25 +0000 (15:27 +0200)
committerDavid Kastrup <dak@gnu.org>
Thu, 28 May 2015 16:06:32 +0000 (18:06 +0200)
Documentation/notation/changing-defaults.itely
ly/music-functions-init.ly

index 7b974fbbb67eed6907a9e7bb46e9756aadb34d85..ffc80342abbe066b295c604fefe5bfc04407a43a 100644 (file)
@@ -4573,9 +4573,12 @@ the accidentals.  In the second measure, with unpure-pure containers,
 the spacing engine knows the width of the note heads and avoids the
 collision by lengthening the line accordingly.
 
-Usually for simple calculations nearly-identical functions for both the
-@q{unpure} and @q{pure} parts can be used, by only changing the number
-of arguments passed to, and the scope of, the function.
+Usually for simple calculations nearly-identical functions for
+both the @q{unpure} and @q{pure} parts can be used, by only
+changing the number of arguments passed to, and the scope of, the
+function.  This use case is frequent enough that
+@code{ly:make-unpure-pure-container} constructs such a second
+function by default when called with only one function argument.
 
 @warning{If a function is labeled as @q{pure} and it turns out not to
 be, the results can be unexpected.}
index 31e7a4d51f88dcd41a184f5ed91ca8f35413260c..74b054dc8c9d183b6453b5a10266f6459c247693 100644 (file)
@@ -511,9 +511,7 @@ given through @var{ratio}.")
   #{
     \set harmonicDots = ##t
     \temporary \override TabNoteHead.stencil = #(tab-note-head::print-custom-fret-label (ratio->fret ratio))
-    \temporary \override NoteHead.Y-extent = #(ly:make-unpure-pure-container ly:grob::stencil-height
-                                       (lambda (grob start end)
-                                               (ly:grob::stencil-height grob)))
+    \temporary \override NoteHead.Y-extent = #(ly:make-unpure-pure-container ly:grob::stencil-height)
     \temporary \override NoteHead.stencil = #(lambda (grob) (ly:grob-set-property! grob 'style 'harmonic-mixed)
                                             (ly:note-head::print grob))
     #(make-harmonic