lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Creating markup macros


From: Nicolas Sceaux
Subject: Re: Creating markup macros
Date: Sun, 28 Nov 2004 00:52:40 +0100
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux)

Han-Wen Nienhuys <address@hidden> writes:

> address@hidden writes:
>> Paul Scott <address@hidden> writes:
>> 
>> > #(def-markup-command (restOne layout props)
>> >   (interpret-markup layout props
>> >    (markup #:number #1)))
>> 
>> As soon as you are inside a Scheme expression, you don't have to use
>> `#' before expressions; the \number markup command takes a markup as
>> an argument, so use the string "1" instead of the number 1. Besides,
>> you forgot the signature argument of `def-markup-command, whih is
>> mandatory.
>
> Shouldn't def-markup-command  check that it gets a list of
> procedures as argument? 

If the signature is not given, then guile issues an error:

/tmp/titi.ly:23:1: Erreur: GUILE a signalé une erreur pour l'expression 
débutant ici:
#
 (def-markup-command (restOne layout props)
missing or extra expression

But I'll add a check and a message, while I'm at markups.

nicolas





reply via email to

[Prev in Thread] Current Thread [Next in Thread]