Simon Albrecht <simon.albre...@mail.de> writes: > On 22.02.2016 02:04, David Kastrup wrote: >> Simon Albrecht <simon.albre...@mail.de> writes: >> >>>> *location* is a procedure (used for accessing the fluid %location local >>>> to the guile module), not a location. So call it. >>> OK, that’s one thing. But with (*location*) I still get the same error >>> message that it be of the wrong type… >> Example code? > > Same as I previously sent, only with brackets
Parens. > added around *location*. See attached. > > Best, Simon > > \version "2.19.36" > > m = > #(define-music-function ()() > (ly:warning-located (*location*) "Here, \\m should be replaced with > \\melisma.") > #{ \melisma #}) > > << > { > c'1\m d\melismaEnd > } > \addlyrics { test test } >>> Looking at the code (and error message), ly:warning-located expects a string as location info. That would always have been the case. You probably want to use ly:input-warning instead of ly:warning-located. That should take (*location*) just fine. -- David Kastrup _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user