On 25 Dec 2011 23:01, "Thomas Morley" <[email protected]> wrote:
> I think there could be some difficulties to find the correct
> condition, when I create my own definitions/functions:
>
> \version "2.15.20"
>
> displayGrob =
> \once\override Stem #'after-line-breaking =
> #(lambda (grob)
> (let* ((beam (ly:grob-object grob 'beam))
> (flag (ly:grob-object grob 'flag)))
>
> (begin
> (if (ly:grob? beam)
> (display "Yes")
> (display "No"))
> (newline)
> (if (ly:grob? flag)
> (display "Yes")
> (display "No"))
> (newline))))
>
> { \displayGrob c'8[ d'] }
>
> I retrieve "Yes" in both cases.
Filter out suicided grobs via grob::is-live?
Cheers,
Neil
_______________________________________________
bug-lilypond mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-lilypond