On 21.02.2016 15:13, David Kastrup wrote:
Simon Albrecht <simon.albre...@mail.de> writes:
Hello,
the doc string for ly:warning-located says
‘Function: ly:warning-located location str rest
A Scheme callable function to issue the warning str at the specified
location in an input file. The message is formatted with format and
rest.’
However, with this example
%%%%%%%%%%%
\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 }
%%%%%%%%
I get
document.ly:5:4: Wrong type argument in position 1 (expecting string):
#<procedure *location* ()>
What is the correct way?
*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…
Yours, Simon
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user