This gets rid of annoying debug messages. I am sure there are more, please tell me what you see.
This goes in soon. JMarc
Index: src/ChangeLog =================================================================== --- src/ChangeLog (revision 14252) +++ src/ChangeLog (working copy) @@ -1,3 +1,7 @@ +2006-06-28 Jean-Marc Lasgouttes <[EMAIL PROTECTED]> + + * buffer.C (changeLanguage): remove debug message. + 2006-06-27 Enrico Forestieri <[EMAIL PROTECTED]> * lyxrc.h: rename RC_CYGWIN_PATH_FIX as RC_TEX_EXPECTS_WINDOWS_PATHS Index: src/buffer.C =================================================================== --- src/buffer.C (revision 14252) +++ src/buffer.C (working copy) @@ -1340,8 +1340,6 @@ BOOST_ASSERT(from); BOOST_ASSERT(to); - lyxerr << "Changing Language!" << endl; - // Take care of l10n/i18n updateDocLang(to); Index: src/frontends/controllers/ChangeLog =================================================================== --- src/frontends/controllers/ChangeLog (revision 14252) +++ src/frontends/controllers/ChangeLog (working copy) @@ -1,3 +1,9 @@ +2006-06-28 Jean-Marc Lasgouttes <[EMAIL PROTECTED]> + + * ControlCitation.C (initialiseParams): remove debug message. + + * ControlSpellchecker.C (replace): make message conditional. + 2006-03-20 Jürgen Spitzmüller <[EMAIL PROTECTED]> * ControlBibtex.[Ch]: new members bibtotoc(), getStylefile(), Index: src/frontends/controllers/ControlCitation.C =================================================================== --- src/frontends/controllers/ControlCitation.C (revision 14252) +++ src/frontends/controllers/ControlCitation.C (working copy) @@ -34,7 +34,6 @@ bool ControlCitation::initialiseParams(string const & data) { - lyxerr << "ControlCitation::initialiseParams\n\t" << data << std::endl; ControlCommand::initialiseParams(data); vector<pair<string, string> > blist; Index: src/frontends/controllers/ControlSpellchecker.C =================================================================== --- src/frontends/controllers/ControlSpellchecker.C (revision 14252) +++ src/frontends/controllers/ControlSpellchecker.C (working copy) @@ -295,8 +295,8 @@ void ControlSpellchecker::replace(string const & replacement) { - lyxerr << "ControlSpellchecker::replace(" - << replacement << ")" << std::endl; + lyxerr[Debug::GUI] << "ControlSpellchecker::replace(" + << replacement << ")" << std::endl; BufferView & bufferview = *kernel().bufferview(); cap::replaceWord(bufferview.cursor(), replacement); kernel().buffer().markDirty();
Index: src/buffer.C =================================================================== --- src/buffer.C (revision 14252) +++ src/buffer.C (working copy) @@ -1342,8 +1342,6 @@ BOOST_ASSERT(from); BOOST_ASSERT(to); - lyxerr << "Changing Language!" << endl; - // Take care of l10n/i18n updateDocLang(to); Index: src/frontends/controllers/ControlCitation.C =================================================================== --- src/frontends/controllers/ControlCitation.C (revision 14252) +++ src/frontends/controllers/ControlCitation.C (working copy) @@ -34,7 +34,6 @@ bool ControlCitation::initialiseParams(string const & data) { - lyxerr << "ControlCitation::initialiseParams\n\t" << data << std::endl; ControlCommand::initialiseParams(data); vector<pair<string, string> > blist; Index: src/frontends/controllers/ControlSpellchecker.C =================================================================== --- src/frontends/controllers/ControlSpellchecker.C (revision 14252) +++ src/frontends/controllers/ControlSpellchecker.C (working copy) @@ -295,8 +295,8 @@ void ControlSpellchecker::replace(string const & replacement) { - lyxerr << "ControlSpellchecker::replace(" - << replacement << ")" << std::endl; + lyxerr[Debug::GUI] << "ControlSpellchecker::replace(" + << replacement << ")" << std::endl; BufferView & bufferview = *kernel().bufferview(); cap::replaceWord(bufferview.cursor(), replacement); kernel().buffer().markDirty();