[Top][All Lists]

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

Re: Introducing the LIlypond Snippet Repository

From: Nicolas Sceaux
Subject: Re: Introducing the LIlypond Snippet Repository
Date: Sun, 13 Feb 2005 13:26:55 +0100
User-agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.3 (gnu/linux)

Han-Wen Nienhuys <address@hidden> writes:

> address@hidden writes:
>> Han-Wen Nienhuys <address@hidden> writes:
>> >
>> > This should not be a big problem. In this case, I solved it by adding
>> > begin-of-line-invisible to safe-lily.scm. However, we should probably
>> > have some Scheme level macro support for tagging a definition as
>> > "safe", ie.
>> >
>> >  (define-safe-public (begin-of-line-invisible .. ))
>> Something like that could do it:
>> (define-macro (define-safe-public arglist . body)

> Could you add this? 

Sorry for not being very reactive since then.
I'm about to commit a `define-safe-public' macro, used where
make web runs fine.

>> It would be good also that LY_DEFINE declared as safe the functions
>> that it defines, e.g. by invoking declare-safe afterwards:
>> (define (declare-safe symbol)
>>   (set! safe-objects (cons (cons symbol (primitive-eval symbol))
>>                            safe-objects))
>>   symbol)
>> Unless some LY_DEFINEd functions are not safe, in which case
>> LY_DEFINE_SAFE should be added.
> Good point. We'll add that to the TODO list.

reply via email to

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