From: Stefan Schimanski Date: Fri, 21 Dec 2007 20:43:21 +0000 (+0000) Subject: * added debugging flag "macros" for math macros X-Git-Tag: 1.6.10~6855 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=a5005c8c480fa8935bdff4063faca0db4608f695;p=features.git * added debugging flag "macros" for math macros git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22242 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/Buffer.cpp b/src/Buffer.cpp index 7bba41a1cd..73157013c1 100644 --- a/src/Buffer.cpp +++ b/src/Buffer.cpp @@ -1691,7 +1691,7 @@ typename M::iterator greatest_below(M & m, typename M::key_type const & x) MacroData const * Buffer::getBufferMacro(docstring const & name, DocIterator const & pos) const { - LYXERR(Debug::DEBUG, "Searching for " << to_ascii(name) << " at " << pos); + LYXERR(Debug::MACROS, "Searching for " << to_ascii(name) << " at " << pos); // if paragraphs have no macro context set, pos will be empty if (pos.empty()) @@ -1964,7 +1964,7 @@ void Buffer::updateMacros() const if (d->macro_lock) return; - LYXERR(Debug::DEBUG, "updateMacro of " << d->filename.onlyFileName()); + LYXERR(Debug::MACROS, "updateMacro of " << d->filename.onlyFileName()); // start with empty table d->macros.clear(); @@ -1984,7 +1984,7 @@ void Buffer::updateMacros() const void Buffer::updateMacroInstances() const { - LYXERR(Debug::DEBUG, "updateMacroInstances for " << d->filename.onlyFileName()); + LYXERR(Debug::MACROS, "updateMacroInstances for " << d->filename.onlyFileName()); ParIterator it = par_iterator_begin(); ParIterator end = par_iterator_end(); for (; it != end; it.forwardPos()) { diff --git a/src/support/debug.cpp b/src/support/debug.cpp index 8d8d5cbe95..79c3817720 100644 --- a/src/support/debug.cpp +++ b/src/support/debug.cpp @@ -63,6 +63,7 @@ ErrorItem errorTags[] = { { Debug::EXTERNAL, "external", N_("External template/inset messages")}, { Debug::PAINTING, "painting", N_("RowPainter profiling")}, { Debug::SCROLLING, "scrolling", N_("scrolling debugging")}, + { Debug::MACROS, "macros", N_("Math macros")}, { Debug::DEBUG, "debug", N_("Developers' general debug messages")}, { Debug::ANY, "any", N_("All debugging messages")} }; diff --git a/src/support/debug.h b/src/support/debug.h index 174b3dcd3b..056e610955 100644 --- a/src/support/debug.h +++ b/src/support/debug.h @@ -92,6 +92,8 @@ namespace Debug { /// SCROLLING = (1 << 25), /// + MACROS = (1 << 26), + /// DEBUG = (1 << 31), /// ANY = 0xffffffff