Comment #8 on issue 2336 by d...@gnu.org: Patch: Add layout changing command \layout-from for getting context defs from music
http://code.google.com/p/lilypond/issues/detail?id=2336

Ok, I am not altogether happy.  The regexp example with its
\midi { \layout-from { \tempo 4 = 80 } }
makes quite obvious that this is rather \context-defs-from or \output-from even though it will most often be used as \layout { \layout-from ...

Its purpose is to adjust context-defs while in an output-def. Does anybody have a better suggestion for its name? It's pushed to staging already, but it would still be pretty painless to change its name. The name should contain a hyphen (to prevent accidental use inside of music). It serves a somewhat similar purpose as \settingsFrom (which is used inside of a single context-def and actually could also make use of a hyphen: it is less "dangerous" since it does not actively change variables in the current module but just returns a context-def).


_______________________________________________
bug-lilypond mailing list
bug-lilypond@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-lilypond

Reply via email to