+2004-08-13 André Pönitz <poenitz@gmx.net>
+
+ * cursor.C: macroModeClose: use plainInsert instead of niceInsert.
+
2004-08-12 André Pönitz <poenitz@gmx.net>
* text3.C: take out the 'cursor right' form insertInset and only
return;
string const name = s.substr(1);
+ lyxerr << "creating macro of name '" << name << "'" << endl;
// prevent entering of recursive macros
+ // FIXME: this is only a weak attempt... only prevents immediate
+ // recursion
InsetBase const * macro = innerInsetOfType(InsetBase::MATHMACRO_CODE);
if (macro && macro->getInsetName() == name)
lyxerr << "can't enter recursive macro" << endl;
- niceInsert(createMathInset(name));
+ //niceInsert(createMathInset(name));
+ plainInsert(createMathInset(name));
}
+
2004-08-12 André Pönitz <poenitz@gmx.net>
* math_nestinset.C: Fix #1249
2004-07-24 Lars Gullik Bjonnes <larsbj@gullik.net>
* math_support.C, math_parser.C, math_nestinset.C, math_macrotable.C:
- * math_hullinset.C, math_gridinset.C, math_factory.C:
- * math_extern.C, math_autocorrect.C, math_arrayinset.C:
- * formulamacro.C, command_inset.C: change "support/std_sstream.h"
+ * math_hullinset.C, math_gridinset.C, math_factory.C: math_extern.C,
+ * math_autocorrect.C, math_arrayinset.C: formulamacro.C,
+ * command_inset.C: change "support/std_sstream.h"
to <sstream>
2004-07-24 Lars Gullik Bjonnes <larsbj@gullik.net>
// return MathAtom(new MathMacro(s,
// MacroTable::localMacros().get(s).numargs()));
+ lyxerr << "creating unknown inset '" << s << "'" << endl;
return MathAtom(new MathUnknownInset(s));
}
cur.selHandle(cmd.action == LFUN_RIGHTSEL);
cur.autocorrect() = false;
cur.clearTargetX();
- if (cur.inMacroMode())
- cur.macroModeClose();
+ cur.macroModeClose();
else if (cur.pos() != cur.lastpos() && cur.openable(cur.nextAtom())) {
cur.pushLeft(*cur.nextAtom().nucleus());
cur.inset().idxFirst(cur);
cur.selHandle(cmd.action == LFUN_LEFTSEL);
cur.autocorrect() = false;
cur.clearTargetX();
- if (cur.inMacroMode())
- cur.macroModeClose();
- else if (cur.pos() != 0 && cur.openable(cur.prevAtom())) {
+ cur.macroModeClose();
+ if (cur.pos() != 0 && cur.openable(cur.prevAtom())) {
cur.posLeft();
cur.push(*cur.nextAtom().nucleus());
cur.inset().idxLast(cur);
StyleChanger::StyleChanger(MetricsBase & mb, Styles style)
: Changer<MetricsBase>(mb)
{
- static const int diff[4][4] = { { 0, 0, -3, -5 },
+ static const int diff[4][4] =
+ { { 0, 0, -3, -5 },
{ 0, 0, -3, -5 },
{ 3, 3, 0, -2 },
{ 5, 5, 2, 0 } };