# HG changeset patch # User Jaroslav Hajek # Date 1269432636 -3600 # Node ID 537d9fbba9c0a1ff4a3e883c1aaaf692569cbc54 # Parent 34e51d4e199b2b8d1e08a36346512c9bb2911e15 don't call missing_function_hook inside try block diff -r 34e51d4e199b -r 537d9fbba9c0 scripts/miscellaneous/unimplemented.m --- a/scripts/miscellaneous/unimplemented.m Wed Mar 24 12:56:18 2010 +0100 +++ b/scripts/miscellaneous/unimplemented.m Wed Mar 24 13:10:36 2010 +0100 @@ -58,7 +58,7 @@ endif endswitch - txt = [txt, "\nPlease read @url{http://www.octave.org/missing.html}",... + txt = [txt, "\nPlease read @url{http://www.octave.org/missing.html} ",... "to find out how you can help with contributing missing functionality."]; warning ("Octave:missing-function",["\n", __makeinfo__(txt)]); diff -r 34e51d4e199b -r 537d9fbba9c0 src/ChangeLog --- a/src/ChangeLog Wed Mar 24 12:56:18 2010 +0100 +++ b/src/ChangeLog Wed Mar 24 13:10:36 2010 +0100 @@ -1,3 +1,8 @@ +2010-03-24 Jaroslav Hajek + + * variables.cc (maybe_missing_function_hook): Don't call hook if + errors are being handled. + 2010-03-24 Jaroslav Hajek * variables.cc (Fmissing_function_hook): New pseudo-variable. diff -r 34e51d4e199b -r 537d9fbba9c0 src/variables.cc --- a/src/variables.cc Wed Mar 24 12:56:18 2010 +0100 +++ b/src/variables.cc Wed Mar 24 13:10:36 2010 +0100 @@ -2392,6 +2392,7 @@ void maybe_missing_function_hook (const std::string& name) { - if (! Vmissing_function_hook.empty ()) + // Don't do this if we're handling errors. + if (buffer_error_messages == 0 && ! Vmissing_function_hook.empty ()) feval (Vmissing_function_hook, octave_value (name)); }