mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-13 06:20:28 +00:00
* added debugging flag "macros" for math macros
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22242 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
36dbec4506
commit
a5005c8c48
@ -1691,7 +1691,7 @@ typename M::iterator greatest_below(M & m, typename M::key_type const & x)
|
|||||||
MacroData const * Buffer::getBufferMacro(docstring const & name,
|
MacroData const * Buffer::getBufferMacro(docstring const & name,
|
||||||
DocIterator const & pos) const
|
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 paragraphs have no macro context set, pos will be empty
|
||||||
if (pos.empty())
|
if (pos.empty())
|
||||||
@ -1964,7 +1964,7 @@ void Buffer::updateMacros() const
|
|||||||
if (d->macro_lock)
|
if (d->macro_lock)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
LYXERR(Debug::DEBUG, "updateMacro of " << d->filename.onlyFileName());
|
LYXERR(Debug::MACROS, "updateMacro of " << d->filename.onlyFileName());
|
||||||
|
|
||||||
// start with empty table
|
// start with empty table
|
||||||
d->macros.clear();
|
d->macros.clear();
|
||||||
@ -1984,7 +1984,7 @@ void Buffer::updateMacros() const
|
|||||||
|
|
||||||
void Buffer::updateMacroInstances() 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 it = par_iterator_begin();
|
||||||
ParIterator end = par_iterator_end();
|
ParIterator end = par_iterator_end();
|
||||||
for (; it != end; it.forwardPos()) {
|
for (; it != end; it.forwardPos()) {
|
||||||
|
@ -63,6 +63,7 @@ ErrorItem errorTags[] = {
|
|||||||
{ Debug::EXTERNAL, "external", N_("External template/inset messages")},
|
{ Debug::EXTERNAL, "external", N_("External template/inset messages")},
|
||||||
{ Debug::PAINTING, "painting", N_("RowPainter profiling")},
|
{ Debug::PAINTING, "painting", N_("RowPainter profiling")},
|
||||||
{ Debug::SCROLLING, "scrolling", N_("scrolling debugging")},
|
{ Debug::SCROLLING, "scrolling", N_("scrolling debugging")},
|
||||||
|
{ Debug::MACROS, "macros", N_("Math macros")},
|
||||||
{ Debug::DEBUG, "debug", N_("Developers' general debug messages")},
|
{ Debug::DEBUG, "debug", N_("Developers' general debug messages")},
|
||||||
{ Debug::ANY, "any", N_("All debugging messages")}
|
{ Debug::ANY, "any", N_("All debugging messages")}
|
||||||
};
|
};
|
||||||
|
@ -92,6 +92,8 @@ namespace Debug {
|
|||||||
///
|
///
|
||||||
SCROLLING = (1 << 25),
|
SCROLLING = (1 << 25),
|
||||||
///
|
///
|
||||||
|
MACROS = (1 << 26),
|
||||||
|
///
|
||||||
DEBUG = (1 << 31),
|
DEBUG = (1 << 31),
|
||||||
///
|
///
|
||||||
ANY = 0xffffffff
|
ANY = 0xffffffff
|
||||||
|
Loading…
Reference in New Issue
Block a user