X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=scm%2Fly-syntax-constructors.scm;h=5d45ea523cfbce43aea3348564135d1c83f565f3;hb=4668ca21be816dc52444adc1b48a78bbd6b1d825;hp=a427daadcca376d5e8dda561daf7c804dadc50ba;hpb=0fe24db3936774a8fb913cb14c997036db7aeb1c;p=lilypond.git diff --git a/scm/ly-syntax-constructors.scm b/scm/ly-syntax-constructors.scm index a427daadcc..5d45ea523c 100644 --- a/scm/ly-syntax-constructors.scm +++ b/scm/ly-syntax-constructors.scm @@ -1,6 +1,6 @@ ;;;; This file is part of LilyPond, the GNU music typesetter. ;;;; -;;;; Copyright (C) 2006--2014 Erik Sandberg +;;;; Copyright (C) 2006--2015 Erik Sandberg ;;;; ;;;; LilyPond is free software: you can redistribute it and/or modify ;;;; it under the terms of the GNU General Public License as published by @@ -53,8 +53,9 @@ (let* ((sig (ly:music-function-signature fun)) (pred (if (pair? (car sig)) (caar sig) (car sig))) (good (proper-list? args)) - (m (and good (apply (ly:music-function-extract fun) - parser loc (reverse! args rest))))) + (m (and good (with-fluids ((%parser parser) (%location loc)) + (apply (ly:music-function-extract fun) + (reverse! args rest)))))) (if (and good (pred m)) (begin (if (ly:music? m)