On 07.04.2016 00:49, Thomas Morley wrote:
3 Would it be possible to write in the compiler error a hint for the user?
Something like:

     Error: markup outside of text script or \lyricmode
       \chordmode {c} _\markup {test}

     Maybe you want to do
       \chordmode{c _\markup {test}}
     ?

If I run the wrong example, I get
document.ly:3:18: error: markup outside of text script or \lyricmode
   \chordmode {c}
                  \markup {test}
and no markup shows up. I’d say that’s enough hints.

Best, Simon
And how to distinguish from
\chordmode {c} \markup {test}
which is viable code?
So no error at all.
Guessing what a user may have intended is very difficult task.

Who did you direct that to? I wanted to confirm that the warning now given was enough.

Best, Simon

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

Reply via email to