From: André Pönitz Date: Fri, 6 Feb 2004 09:34:04 +0000 (+0000) Subject: disable a few messages X-Git-Tag: 1.6.10~15526 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=9270b36fb441640c9db3e193a6b919f2146a5909;p=features.git disable a few messages git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8406 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/BufferView_pimpl.C b/src/BufferView_pimpl.C index dee7f7df35..4cc5294765 100644 --- a/src/BufferView_pimpl.C +++ b/src/BufferView_pimpl.C @@ -888,7 +888,7 @@ bool BufferView::Pimpl::workAreaDispatch(FuncRequest const & cmd0) // FuncRequest cmd = cmd0; cmd.y += bv_->top_y(); - lyxerr << "*** workAreaDispatch: request: " << cmd << std::endl; + //lyxerr << "*** workAreaDispatch: request: " << cmd << std::endl; LCursor cur(*bv_); switch (cmd.action) { #if 0 @@ -967,8 +967,7 @@ bool BufferView::Pimpl::workAreaDispatch(FuncRequest const & cmd0) } default: - lyxerr << "*** UNDISPATCHED: " << cmd; - //owner_->dispatch(cmd); + BOOST_ASSERT(false); } return true; } diff --git a/src/cursor.C b/src/cursor.C index 02c83938ac..2151f6be12 100644 --- a/src/cursor.C +++ b/src/cursor.C @@ -77,7 +77,7 @@ void LCursor::reset() DispatchResult LCursor::dispatch(FuncRequest const & cmd0) { - //lyxerr << "\nLCursor::dispatch: cmd: " << cmd0 << endl << *this << endl; + lyxerr << "\nLCursor::dispatch: cmd: " << cmd0 << endl << *this << endl; FuncRequest cmd = cmd0; for (current_ = cursor_.size() - 1; current_ >= 1; --current_) { lyxerr << "trying to dispatch to inset " << inset() << endl; @@ -108,8 +108,8 @@ DispatchResult LCursor::dispatch(FuncRequest const & cmd0) } } BOOST_ASSERT(current_ == 0); - lyxerr << "trying to dispatch to main text " << bv_->text() - << " with cursor: " << *this << endl; + //lyxerr << "trying to dispatch to main text " << bv_->text() + // << " with cursor: " << *this << endl; DispatchResult res = bv_->text()->dispatch(*this, cmd); //lyxerr << " result: " << res.val() << endl; return res; diff --git a/src/insets/insetcollapsable.C b/src/insets/insetcollapsable.C index cbea996dcb..8a285b8e8e 100644 --- a/src/insets/insetcollapsable.C +++ b/src/insets/insetcollapsable.C @@ -317,8 +317,8 @@ void InsetCollapsable::edit(LCursor & cur, int x, int y) DispatchResult InsetCollapsable::priv_dispatch(LCursor & cur, FuncRequest const & cmd) { - lyxerr << "\nInsetCollapsable::priv_dispatch (begin): cmd: " << cmd - << " button y: " << button_dim.y2 << endl; + //lyxerr << "\nInsetCollapsable::priv_dispatch (begin): cmd: " << cmd + // << " button y: " << button_dim.y2 << endl; switch (cmd.action) { case LFUN_MOUSE_PRESS: if (status_ == Inlined) diff --git a/src/insets/insetert.C b/src/insets/insetert.C index 73d067ec5a..4893e5a2a3 100644 --- a/src/insets/insetert.C +++ b/src/insets/insetert.C @@ -210,7 +210,7 @@ int InsetERT::docbook(Buffer const &, ostream & os, DispatchResult InsetERT::priv_dispatch(LCursor & cur, FuncRequest const & cmd) { - lyxerr << "\nInsetERT::priv_dispatch (begin): cmd: " << cmd << endl; + //lyxerr << "\nInsetERT::priv_dispatch (begin): cmd: " << cmd << endl; switch (cmd.action) { case LFUN_INSET_MODIFY: { diff --git a/src/lyxfunc.C b/src/lyxfunc.C index eee8bb805e..fe8805541d 100644 --- a/src/lyxfunc.C +++ b/src/lyxfunc.C @@ -246,10 +246,7 @@ void LyXFunc::processKeySym(LyXKeySymPtr keysym, key_modifier::state state) if (func.action == LFUN_SELFINSERT) { if (encoded_last_key != 0) { - string arg; - arg += encoded_last_key; - lyxerr << "SelfInsert arg[`" - << arg << "']" << endl; + string arg(1, encoded_last_key); dispatch(FuncRequest(LFUN_SELFINSERT, arg)); lyxerr[Debug::KEY] << "SelfInsert arg[`" << arg << "']" << endl; diff --git a/src/rowpainter.C b/src/rowpainter.C index d9f8001afe..cea4f0de89 100644 --- a/src/rowpainter.C +++ b/src/rowpainter.C @@ -890,7 +890,7 @@ int paintText(BufferView const & bv) ParagraphList::iterator pit; bv.text()->updateParPositions(); bv.text()->getRowNearY(0, pit); - lyxerr << "top_y: " << bv.top_y() << " y: " << pit->y << endl; + //lyxerr << "top_y: " << bv.top_y() << " y: " << pit->y << endl; return paintPars(bv, *bv.text(), pit, 0, 0, pit->y); }