]> git.lyx.org Git - features.git/commitdiff
* added debugging flag "macros" for math macros
authorStefan Schimanski <sts@lyx.org>
Fri, 21 Dec 2007 20:43:21 +0000 (20:43 +0000)
committerStefan Schimanski <sts@lyx.org>
Fri, 21 Dec 2007 20:43:21 +0000 (20:43 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22242 a592a061-630c-0410-9148-cb99ea01b6c8

src/Buffer.cpp
src/support/debug.cpp
src/support/debug.h

index 7bba41a1cdf25b7015ef390f41e6604867d79410..73157013c147efbf80554788b4253d3e2bc07924 100644 (file)
@@ -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()) {
index 8d8d5cbe95a1e3a5547b33dcee56ffa0b243a7d7..79c3817720653660e379487fea9e15db2bf504e3 100644 (file)
@@ -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")}
 };
index 174b3dcd3b327b1e45316f8abe28b771923c2ce6..056e610955280e7c690433a06ef95514ad06dc54 100644 (file)
@@ -92,6 +92,8 @@ namespace Debug {
                ///
                SCROLLING  = (1 << 25),
                ///
+               MACROS     = (1 << 26),
+               ///
                DEBUG      = (1 << 31),
                ///
                ANY = 0xffffffff