]> git.donarmstrong.com Git - lilypond.git/commitdiff
Doc: scm - Clarify ly:context-pushpop-property
authorJames Lowe <pkx166h@gmail.com>
Sun, 1 Nov 2015 15:02:54 +0000 (15:02 +0000)
committerJames Lowe <pkx166h@gmail.com>
Sat, 7 Nov 2015 17:31:13 +0000 (17:31 +0000)
Issue 4639

Clarified when we mean
'\temporary \overrride'
and just '\overrride'.

lily/context-scheme.cc
scm/music-functions.scm

index 169d0b7b3d66ade4fd6d437e3434714c214b57df..feda0f607eab62fffb45c2d770277b12114e814d 100644 (file)
@@ -76,7 +76,7 @@ LY_DEFINE (ly_context_grob_definition, "ly:context-grob-definition",
 
 LY_DEFINE (ly_context_pushpop_property, "ly:context-pushpop-property",
            3, 1, 0, (SCM context, SCM grob, SCM eltprop, SCM val),
-           "Do a single @code{\\override} or @code{\\revert} operation"
+           "Do @code{\\temporary \\override} or @code{\\revert} operation"
            " in @var{context}.  The grob definition @var{grob} is extended"
            " with @var{eltprop} (if @var{val} is specified) or reverted"
            " (if unspecified).")
index 6e6d9c894b0ad8064f52cb300c8ed5b85531121f..d5a4b2478a00acce7fa6b18ca72c7dcee2a64f97 100644 (file)
@@ -537,8 +537,9 @@ error (using optionally @code{location})."
           #f))))
 
 (define-public (make-grob-property-set grob gprop val)
-  "Make a @code{Music} expression that sets @var{gprop} to @var{val} in
-@var{grob}.  Does a pop first, i.e., this is not an override."
+  "Make a @code{Music} expression that overrides a @var{gprop} to
+@var{val} in @var{grob}.  Does a pop first, i.e. this is not a
+@code{\\temporary \\override}."
   (make-music 'OverrideProperty
               'symbol grob
               'grob-property gprop
@@ -546,8 +547,9 @@ error (using optionally @code{location})."
               'pop-first #t))
 
 (define-public (make-grob-property-override grob gprop val)
-  "Make a @code{Music} expression that overrides @var{gprop} to @var{val}
-in @var{grob}."
+  "Make a @code{Music} expression that overrides @var{gprop} to
+@var{val} in @var{grob}.  This is a @code{\\temporary \\override},
+making it possible to @code{\\revert} to any previous value afterwards."
   (make-music 'OverrideProperty
               'symbol grob
               'grob-property gprop