Stefan,
Without a MWE I cannot be specific, yet when I encounter this error, the staff to which I want to change does not exist, i.e., does not have any coding in it. Mark From: lilypond-user-bounces+carsonmark=ca.rr....@gnu.org <lilypond-user-bounces+carsonmark=ca.rr....@gnu.org> On Behalf Of Stefan Thomas Sent: Saturday, March 15, 2025 11:22 AM To: lilypond-user <lilypond-user@gnu.org> Subject: problems with shortcut for change staff Dear community, when writing for piano, I change very often between the staves. For this reason, I have defined this abbreviation: re = { \change Staff = "rechts" } li = { \change Staff = "links" } But while compiling a file I get very often: /home/stefan/partituren/vorlagen/klavierstyle.ly:29:8: warning: cannot find context to change to: Staff = links li = { \change Staff = "links" } How can I avoid this error message?