'warning_ids' missing?

John W. Eaton jwe at octave.org
Wed Feb 4 15:31:52 CST 2009


On  4-Feb-2009, Søren Hauberg wrote:

| ons, 04 02 2009 kl. 16:11 -0500, skrev John W. Eaton:
| > so for some reason the new help system is not noticing that there is a
| > doc string in this file.  Does it rely on the parser grabbing the help
| > text?  Maybe some recent change I made to the parser broke this.
| 
| In 'do_which' (in help.cc) we do
| 
|   octave_value val = symbol_table::find_function (name);
| 
| and then check
| 
|   if (val.is_defined ())
| 
| This check seems to fail, so I guess this is parser related.
| 
| > I see that it does recognize the doc string if there is at least a
| > statement in the file, but for compatibility with Matlab, Octave
| > should be able to handle .m files that contain doc strings in a
| > comment and nothing else.
| 
| In this specific case ('warning_ids') I think we should have the
| following function:
| 
|   function warning_ids ()
|     help warning_ids
|   endfunction
| 
| such that you only have to type 'warning_ids' to get the list, instead
| of typing 'help warning_ids'.

That's OK, but the other problem still needs to be fixed.  I'll take a
look at it.

jwe



More information about the Bug-octave mailing list