bug-lilypond
[Top][All Lists]
Advanced

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

Re: New read/eval Scheme syntax inconsistent in handling existing code


From: David Kastrup
Subject: Re: New read/eval Scheme syntax inconsistent in handling existing code
Date: Sun, 04 Dec 2011 16:05:28 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (gnu/linux)

Valentin Villenave <address@hidden> writes:

>
>> describeMusic =
>> #(define-music-function (parser location description music) (string?
>> ly:music?)
>>  (set! (ly:music-property music 'description) description)
>>  music)
>>
>> hideNotes =
>> \describeMusic "This hides notes"
>> {
>>  ...
>> }
>
> Interesting. I think this discussion took place when we started
> documenting music-functions-init.ly, and were wondering how to
> document property-init.ly in a similar way.

(define documentation (make-object-property))

(set! (documentation eval-conf) ".....")

However, the question is whether the actual desire is to place the
documentation within the object, or rather whether the desire is to
register object _name_ and documentation somewhere where the
documentation printer can sort and arrange it for generating the
manuals.

-- 
David Kastrup



reply via email to

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