[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #29986] Minor: calling plot with no arguments
From: |
David Bateman |
Subject: |
[Octave-bug-tracker] [bug #29986] Minor: calling plot with no arguments results in errors (instead of just usage) |
Date: |
Wed, 23 Jun 2010 15:29:52 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.14) Gecko/2009091010 Iceweasel/3.0.14 (Debian-3.0.14-1) |
Update of bug #29986 (project octave):
Status: None => Patch Submitted
Assigned to: None => dbateman
_______________________________________________________
Follow-up Comment #3:
What Rik suggests will help with the quadl function, but it won't help for
the plot function... The way the print_usage function works is that it calls
dbstack, then counts the depth of the function stack. From that it can figure
out if the offending function was called from the top-level or not... We could
change the error line in __plt__.m to
evalin ("caller", "print_usage()")
but then the caller stack would be
plot
__plt__
plot
print_usage
and the print_usage function would think that plot wasn't called from the
toplevel.. The only way I see to really fix this is to have __plt__ return
with a flag that the call was invalid that have the six functions that called
__plt__ then call print_usage(), though this is ugly as it means more code
than is strictly needed just to get rid of a trivial error message. Attached
is a patch that would make this change. More code is not a great thing and so
I hesitate to make such change, but will with a little convincing
D.
(file #20796)
_______________________________________________________
Additional Item Attachment:
File name: patch.plot Size:2 KB
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?29986>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #29986] Minor: calling plot with no arguments results in errors (instead of just usage), Jake, 2010/06/03
- [Octave-bug-tracker] [bug #29986] Minor: calling plot with no arguments results in errors (instead of just usage), Rik, 2010/06/11
- [Octave-bug-tracker] [bug #29986] Minor: calling plot with no arguments results in errors (instead of just usage),
David Bateman <=
- [Octave-bug-tracker] [bug #29986] Minor: calling plot with no arguments results in errors (instead of just usage), John W. Eaton, 2010/06/23
- [Octave-bug-tracker] [bug #29986] Minor: calling plot with no arguments results in errors (instead of just usage), David Bateman, 2010/06/23
- [Octave-bug-tracker] [bug #29986] Minor: calling plot with no arguments results in errors (instead of just usage), Rik, 2010/06/24
- [Octave-bug-tracker] [bug #29986] Minor: calling plot with no arguments results in errors (instead of just usage), Søren Hauberg, 2010/06/24
- [Octave-bug-tracker] [bug #29986] Minor: calling plot with no arguments results in errors (instead of just usage), John W. Eaton, 2010/06/24