Found this while investigating 2050/2060: when creating a macro with "math-macro aa", the type is set to "" instead of "newcommand".
It is an obvious typo in the code, so I'll just commit. JMarc
Index: src/ChangeLog =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/ChangeLog,v retrieving revision 1.2293 diff -u -p -r1.2293 ChangeLog --- src/ChangeLog 28 Sep 2005 15:02:45 -0000 1.2293 +++ src/ChangeLog 3 Oct 2005 10:50:52 -0000 @@ -1,3 +1,8 @@ +2005-10-03 Jean-Marc Lasgouttes <[EMAIL PROTECTED]> + + * text3.C (dispatch): when invoking LFUN_MATH_MACRO with no type + argument, use "newcommand". + 2005-09-28 Jürgen Spitzmüller <[EMAIL PROTECTED]> * cursor.C (setSelection): do not open collapsable insets; Index: src/text3.C =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/text3.C,v retrieving revision 1.308 diff -u -p -r1.308 text3.C --- src/text3.C 27 Sep 2005 08:42:28 -0000 1.308 +++ src/text3.C 3 Oct 2005 10:50:52 -0000 @@ -1254,7 +1254,7 @@ void LyXText::dispatch(LCursor & cur, Fu int const nargs = s1.empty() ? 0 : convert<int>(s1); string const s2 = token(s, ' ', 2); string const type = s2.empty() ? "newcommand" : s2; - cur.insert(new MathMacroTemplate(token(s, ' ', 0), nargs, s2)); + cur.insert(new MathMacroTemplate(token(s, ' ', 0), nargs, type)); //cur.nextInset()->edit(cur, true); } break;