From f352e0b8dd0d9b0e0ec4c75416e3eb071db7295f Mon Sep 17 00:00:00 2001 From: David Kastrup Date: Sun, 20 Oct 2013 15:29:21 +0200 Subject: [PATCH] Issue 3625: Overrides via \tweak don't insist on proper context/grob and property split The normal \tweak syntax of overrides is \tweak property #value Context.Grob This version just concatenates the symbol list at the end with the one at the start before checking for a valid (possibly sub-)property path. This allows a somewhat more flexible programmatic use. --- ly/music-functions-init.ly | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/ly/music-functions-init.ly b/ly/music-functions-init.ly index 02c6ac6531..dbecbf2f44 100644 --- a/ly/music-functions-init.ly +++ b/ly/music-functions-init.ly @@ -1485,12 +1485,12 @@ property (inside of an alist) is tweaked.") ;; We could just throw this at \override and let it sort this ;; out on its own, but this way we should get better error ;; diagnostics. - (let ((a (check-grob-path item parser location - #:default 'Bottom #:min 2 #:max 2)) - (b (check-grob-path prop parser location - #:start 2))) - (if (and a b) - #{ \override #(append a b) = #value #} + (let ((p (check-grob-path + (append item (if (symbol? prop) (list prop) prop)) + parser location + #:default 'Bottom #:min 3))) + (if p + #{ \override #p = #value #} (make-music 'Music))))) undo = -- 2.39.5