Abdelrazak Younes wrote:
Richard Heck wrote:
There's reason to want to do the test. The idea is to see if the
previous call to string2params issued an error. But this test can't
work, because the constructor call sets the command name, and the
string2params call, though it clears the parameters before it does
anything else, does not clear THAT. Anyway, it's obvious that this
way of doing the test appeals to magic. So the question is how best
to do it.
I see that InsetCommandParams::read() is throwing warning exception is
there's a parsing error. This can happen for example when a user uses
wrong options in the minibuffer for the given LFUN. So it's a good
idea to catch them and your patch is right in this sense. But I guess
this is something the user want to know about instead of silently do
nothing. So you'd better launch a warning dialog to inform the user.
Does the warning dialog not get shown if the exception is caught? I
thought that might be the case.
Richard
--
==================================================================
Richard G Heck, Jr
Professor of Philosophy
Brown University
http://frege.brown.edu/heck/
==================================================================
Get my public key from http://sks.keyserver.penguin.de
Hash: 0x1DE91F1E66FFBDEC
Learn how to sign your email using Thunderbird and GnuPG at:
http://dudu.dyn.2-h.org/nist/gpg-enigmail-howto