Re: Get the context name of grob object

2019-06-30 Thread David Kastrup
Nils Nommensen  writes:

> Hello,
> I am currently experimenting with Lilypond and its internal functions and
> have a question regarding grobs:
> Is it somehow possible to get a unique identifier of the context a given
> grob object is in?

A grob object is not as much _in_ a given context but announced _from_ a
context.  grob-acknowledgers of an engraver receive their own engraver
as one argument and the source engraver as another.  Checking the
ly:translator-context of the source engraver should give you the closest
you can get to what you want.  Short of what grob-acknowledgers get to
see, there is no record what context a grob originated from.

-- 
David Kastrup

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Get the context name of grob object

2019-06-30 Thread Nils Nommensen
Hello,
I am currently experimenting with Lilypond and its internal functions and
have a question regarding grobs:
Is it somehow possible to get a unique identifier of the context a given
grob object is in? I know that there are functions like ly:context-id and
ly:context-name, but they are expecting context objects and I'm not really
sure how to get those with a given grob object.

Can anybody help me with this?
Best Regards

Nils Nommensen
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user