Hi Jean,

Le jeu. 10 nov. 2022 à 11:23, Jean Abou Samra <j...@abou-samra.fr> a écrit :
...

> This is nice! Just a thought: why use after-line-breaking
> here?

...

Bad habit? Respond without thinking long enough? Too proud it'd worked?
Missing knowledge? All?... Yeah, probably all...


> This is the sort of thing that can cause mysterious bugs
> if something else reads the stencil property before your
> after-line-breaking callback is executed. In general, it's
> good practice to stick with normal callbacks in most cases,
> and only use after-line-breaking if you really need it.
> Also, you can use grob-transformer to get the default value.
> This way, if the default changes in a future version, the code
> will still work. (grob-transformer is documented here:
> https://lilypond.org/doc/v2.22/Documentation/extending/callback-functions)
>

Thanks for the tip Jean, I'll keep that in mind ;)
Cheers,
Pierre

Reply via email to