]> git.lyx.org Git - features.git/commit
Don't print useless messages while parsing math macros
authorEnrico Forestieri <forenr@lyx.org>
Mon, 31 Oct 2016 14:23:20 +0000 (15:23 +0100)
committerEnrico Forestieri <forenr@lyx.org>
Mon, 31 Oct 2016 14:23:20 +0000 (15:23 +0100)
commite3c3719643c46819aa586346a313d514c5903898
treecce8c0989c88e8a15f85013cf1b32e35e9f92eb3
parentda323c1910b300d5b68883d0b44a2dc33dbdd5b3
Don't print useless messages while parsing math macros

Math macros can be displayed on screen by providing a different
representation than the one used for latex output. This representation
is actually used by lyx even while it is being updated. This leads to
printing useless error messages on the terminal. For example, a macro
parameter has to be entered as \#1 and, if the macro is already used in
a math inset, lyx prints on terminal the error message "Math parse error:
missing token after \\" as soon as one hits the \ key, followed by
"MathMacroArgument::MathMacroArgument: wrong Argument id: -48" as soon as
one hits the # key. So, this is not a useful information and simply
clutters the terminal output. On the other hand, the input is sanitized
even if one stops input after hitting either \ or #, so that no further
messages are issued. Hence, those error messages are simply pointless.
src/mathed/MacroTable.cpp
src/mathed/MathMacro.cpp
src/mathed/MathParser.cpp