> With \providecommand an old macro definition remains in effect, even if
> it is defined differently.
This is the intention. Users for example often complained that the grey value for greyed-out notes
is too light. So when a user changed the definition to get another color don't overwrite this with
\providecommand.
Another solution would be to use \...@ifundefined, do you think we should use
this instead?
> Rather, teach tex2lyx how to do the right thing.
tex2lyx already recognizes \providecommand. We are currently working on a better solution for the
tex2lyx preamble handling to assure that roundtrips will work in as many as possible cases. The
change from \newcommand is the first step.
regards Uwe