# HG changeset patch # User John W. Eaton # Date 1291753817 18000 # Node ID f8e97e9a9301bb537c41085d3d05509252b7d2d9 # Parent d7ea780b036f30610a6cbf96358e9d43c919be7b avoid reparsing files after errors diff --git a/src/ChangeLog b/src/ChangeLog --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2010-12-07 John W. Eaton + + * symtab.cc (symbol_table::fcn_info::fcn_info_rep::find): If an + error occurred during the first call to xfind, don't try again. + 2010-12-07 John W. Eaton * oct-parse.yy (case_list): Also accept default_case by itself. diff --git a/src/symtab.cc b/src/symtab.cc --- a/src/symtab.cc +++ b/src/symtab.cc @@ -575,7 +575,7 @@ { octave_value retval = xfind (args, local_funcs); - if (! retval.is_defined ()) + if (! (error_state || retval.is_defined ())) { // It is possible that the user created a file on the fly since // the last prompt or chdir, so try updating the load path and