From bug-request at octave dot org Tue Apr 4 18:00:32 2006 Subject: Re: lookfor bug From: David Bateman To: bug at octave dot org Date: Wed, 05 Apr 2006 00:55:26 +0200 This is a multi-part message in MIME format. --------------040409020906030806080405 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit There is another stupid bug in lookfor that I just noticed. Lookfor uses the help text of the autoloaded functions parent and not its own help text. One character fix and previous fix attached.. D. -- David Bateman David dot Bateman at motorola dot com Motorola Labs - Paris +33 1 69 35 48 04 (Ph) Parc Les Algorithmes, Commune de St Aubin +33 6 72 01 06 33 (Mob) 91193 Gif-Sur-Yvette FRANCE +33 1 69 35 77 01 (Fax) The information contained in this communication has been classified as: [x] General Business Information [ ] Motorola Internal Use Only [ ] Motorola Confidential Proprietary --------------040409020906030806080405 Content-Type: text/plain; name="patch22" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="patch22" Index: src/help.cc =================================================================== RCS file: /usr/local/cvsroot/octave/src/help.cc,v retrieving revision 1.151 diff -c -r1.151 help.cc *** src/help.cc 15 Mar 2006 21:27:35 -0000 1.151 --- src/help.cc 4 Apr 2006 22:41:38 -0000 *************** *** 1651,1657 **** OCTAVE_QUIT; symbol_record *sr = lookup_by_name (name, 0); ! if (sr && sr->is_defined ()) { std::string h = sr->help (); --- 1651,1658 ---- OCTAVE_QUIT; symbol_record *sr = lookup_by_name (name, 0); ! if (sr && sr->is_defined () && ! sr->type_name() != "overloaded function") { std::string h = sr->help (); *************** *** 1794,1800 **** if (!sr) { // Must load to get help ! sr = lookup_by_name (name, false); std::string h; if (sr && sr->is_defined ()) --- 1795,1801 ---- if (!sr) { // Must load to get help ! sr = lookup_by_name (aname, false); std::string h; if (sr && sr->is_defined ()) --------------040409020906030806080405-- ------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.octave.org How to fund new projects: http://www.octave.org/funding.html Subscription information: http://www.octave.org/archive.html -------------------------------------------------------------