]> git.donarmstrong.com Git - lilypond.git/commitdiff
Issue 5106: Don't widespace \set/\unset arguments in display
authorDavid Kastrup <dak@gnu.org>
Fri, 24 Mar 2017 09:16:22 +0000 (10:16 +0100)
committerDavid Kastrup <dak@gnu.org>
Fri, 31 Mar 2017 09:35:27 +0000 (11:35 +0200)
    \displayLilyMusic \set Score.skipBars = #3

was displayed as

    \displayLilyMusic \set Score . skipBars = #3

as opposed to the entry method recommended now and already implemented
for the display of \override/\revert .

input/regression/display-lily-tests.ly
scm/define-music-display-methods.scm

index d96e40d21f4dc02bb4155f710edd05839f5adcd5..55d86c3516f10c2ef955b7ebfe1ef463978c6a18 100644 (file)
@@ -215,12 +215,12 @@ stderr of this run."
   \remove "Clef_engraver"
 } { c4 d4 } #]
 %% Context properties
-\test ##[ \once \set Score . skipBars = ##t #]         % PropertySet
+\test ##[ \once \set Score.skipBars = ##t #]           % PropertySet
 \test ##[ \set autoBeaming = ##f #]
-\test ##[ \unset Score . skipBars #]           % PropertyUnset
+\test ##[ \unset Score.skipBars #]                     % PropertyUnset
 \test ##[ \unset autoBeaming #]
 %% Layout properties
-\test ##[ \override Staff.Stem.thickness = #4.0 #]             % OverrideProperty
+\test ##[ \override Staff.Stem.thickness = #4.0 #]     % OverrideProperty
 \test ##[ \once \override Beam.beam-thickness = #0.6 #]
 \test ##[ \revert Staff.Stem.thickness #]              % RevertProperty
 \test ##[ \revert Beam.beam-thickness #]
index 492050a9ba27271468553b43b89780ada644030d..a61c2e8b18e9895d7c0d9613f309427cb91d4768 100644 (file)
@@ -803,9 +803,9 @@ Otherwise, return #f."
             (if (and (not (null? once)))
                 "\\once "
                 "")
-            (if (eqv? (*current-context*) 'Bottom)
+            (if (eq? (*current-context*) 'Bottom)
                 ""
-                (format #f "~a . " (*current-context*)))
+                (format #f "~a." (*current-context*)))
             property
             (value->lily-string value)
             (new-line->lily-string))))
@@ -813,9 +813,9 @@ Otherwise, return #f."
 (define-display-method PropertyUnset (expr)
   (format #f "~a\\unset ~a~a~a"
           (if (ly:music-property expr 'once #f) "\\once " "")
-          (if (eqv? (*current-context*) 'Bottom)
+          (if (eq? (*current-context*) 'Bottom)
               ""
-              (format #f "~a . " (*current-context*)))
+              (format #f "~a." (*current-context*)))
           (ly:music-property expr 'symbol)
           (new-line->lily-string)))