]> git.donarmstrong.com Git - lilypond.git/commitdiff
Fix point-and-click for \breathe.
authorNeil Puttock <n.puttock@gmail.com>
Tue, 23 Nov 2010 22:54:57 +0000 (22:54 +0000)
committerValentin Villenave <valentin@villenave.net>
Fri, 26 Nov 2010 23:08:49 +0000 (00:08 +0100)
* ly/music-functions-init.ly (breathe):

  junk EventChord wrapper for BreathingEvent

ly/music-functions-init.ly

index 82f5a91648a324e8437825fc2d1b31ee2effbdb7..4a58f05522f919b1f242735e0965bf8e0adbce65 100644 (file)
@@ -198,13 +198,14 @@ bookOutputSuffix =
    (set! book-output-suffix newsuffix)
    (make-music 'SequentialMusic 'void #t))
 
-%% why a function?
+%% \breathe is defined as a music function rather than an event identifier to
+%% ensure it gets useful input location information: as an event identifier,
+%% it would have to be wrapped in an EventChord to prevent it from being
+%% treated as a post_event by the parser
 breathe =
 #(define-music-function (parser location) ()
    (_i "Insert a breath mark.")
-   (make-music 'EventChord
-              'origin location
-              'elements (list (make-music 'BreathingEvent))))
+   (make-music 'BreathingEvent))