lilypond-user
[Top][All Lists]
Advanced

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

Re: Retrieving 'tweaks from a grob


From: David Kastrup
Subject: Re: Retrieving 'tweaks from a grob
Date: Mon, 25 Jul 2016 17:22:49 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)

David Kastrup <address@hidden> writes:

> Don't do that.  The acknowledger is the place for _setting_
> properties, and of course a first acknowledger has no chance to see
> properties set by a second acknowledger.  Instead, use the
> acknowledger to _record_ the grobs.  Then you use the
> process-acknowledged hook to actually process them.  This includes
> looking at properties (like the ones set by the Tweak_engraver).

process-acknowledged may be called multiple times (if some of the
processing creates new grobs), so be sure to clear out your list of
grobs after having processed them (no announcements of newly created
grobs will be made until all process-acknowledged hook calls are
through, so this happens properly serialized).

-- 
David Kastrup



reply via email to

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