From ca4775841fdaaac0989e32c61f140df808480202 Mon Sep 17 00:00:00 2001 From: Neil Puttock Date: Tue, 23 Nov 2010 22:54:57 +0000 Subject: [PATCH] Fix point-and-click for \breathe. * ly/music-functions-init.ly (breathe): junk EventChord wrapper for BreathingEvent --- ly/music-functions-init.ly | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/ly/music-functions-init.ly b/ly/music-functions-init.ly index 82f5a91648..4a58f05522 100644 --- a/ly/music-functions-init.ly +++ b/ly/music-functions-init.ly @@ -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)) -- 2.39.5