octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #45855] add function information from not-yet-


From: Mike Miller
Subject: [Octave-bug-tracker] [bug #45855] add function information from not-yet-loaded packages to the missing_function_hook
Date: Tue, 01 Sep 2015 19:40:09 +0000
User-agent: Mozilla/5.0 (X11; Linux i686; rv:38.0) Gecko/20100101 Firefox/38.0

URL:
  <http://savannah.gnu.org/bugs/?45855>

                 Summary: add function information from not-yet-loaded
packages to the missing_function_hook
                 Project: GNU Octave
            Submitted by: mtmiller
            Submitted on: Tue 01 Sep 2015 03:40:07 PM EDT
                Category: Octave Function
                Severity: 1 - Wish
                Priority: 5 - Normal
              Item Group: Feature Request
                  Status: Postponed
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: Any

    _______________________________________________________

Details:

This idea came up on the help mailing list, just noting it as I think it would
be a useful enhancement. Note that it may end up being only corner cases, I'm
not sure what percentage of functions fall into this category.

The missing_function_hook function __unimplemented__ has a list of known
functions from Matlab and Matlab toolboxes, grouped by equivalent Octave
package name, so it can tell users which package to load or install to get a
given function.

This doesn't cover a couple cases: functions that *should* be in Octave core,
but are in a package (e.g. xmlread in the io package); and functions that are
in a package but are not in Matlab (e.g. assumptions in the symbolic
package).

The __unimplemented__ function could be enhanced to search through the list of
functions provided by installed packages, and show the user that a package
could be loaded to be able to use that function.

Example showing how to locate a given function in the pkg cache structure:


>> assumptions
error: 'assumptions' undefined near line 1 column 1
>> pkgs = pkg ("describe", "all");
>> pkgs{5}.name
ans = symbolic
>> any (strcmp (pkgs{5}.provides{1}.functions, "assumptions"))
ans =  1







    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?45855>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]