Re: [frogs] Lilypond variable definitions - are they accessible from Scheme? |
[ Thread Index |
Date Index
| More lilynet.net/frogs Archives
]
- To: Ian Hulin <ian@xxxxxxxxxxxx>, Lilypond Frogs List <frogs@xxxxxxxxxxx>
- Subject: Re: [frogs] Lilypond variable definitions - are they accessible from Scheme?
- From: Carl Sorensen <c_sorensen@xxxxxxx>
- Date: Sun, 3 Jan 2010 17:00:29 -0700
- Accept-language: en-US
- Acceptlanguage: en-US
- Cc: Lily devel <lilypond-devel@xxxxxxx>
- Thread-index: AcqMv1kOMlyRZs27RA2Sj3YYHphNvwAEZPkJ
- Thread-topic: [frogs] Lilypond variable definitions - are they accessible from Scheme?
On 1/3/10 2:54 PM, "Ian Hulin" <ian@xxxxxxxxxxxx> wrote:
> HI all,
> I'm working on the Guile Debugger Stuff, and would like to try debugging a
> music function definition such as:
> conditionalMark = #(define-music-function (parser location) ()
> #{ \tag #'instrumental-part {\mark \default} #} )
>
> It appears conditionalMark does not get set up as an equivalent of a Scheme
> (define conditionalMark = define-music-function(parser location () ...
> although something gets defined because Scheme apparently recognizes
> #(set-break! conditionalMark)
> later on in the file without signalling any Guile errors.
> However the breakpoint trap is never encountered as define-music-function
> passed things on to ly:make-music-function, which is really C++ code
> ly_make_music_function, so Guile never finds out about the breakpoint.
I think that LilyPond variables are visible in Scheme.
I'm not sure why you can't set the breakpoint for conditionalMark. If I had
to guess, it would be because define-music-function is a macro, not a Scheme
procedure, but that's a totally wild guess.
I've copied this to -devel, because this question is over my head.
Thanks,
Carl
---
----
Join the Frogs!