Mercurial > hg > octave-nkf
changeset 5395:8db4eb48f546
[project @ 2005-06-16 20:19:18 by jwe]
author | jwe |
---|---|
date | Thu, 16 Jun 2005 20:19:19 +0000 |
parents | 256dde4f6aea |
children | 983bf1f4bab5 |
files | scripts/ChangeLog scripts/plot/__errcomm__.m scripts/plot/__errplot__.m scripts/plot/__plt__.m scripts/plot/__pltopt1__.m scripts/polynomial/polyfit.m src/ChangeLog src/defaults.cc src/sysdep.cc |
diffstat | 9 files changed, 29 insertions(+), 10 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,3 +1,7 @@ +2005-06-15 John W. Eaton <jwe@octave.org> + + * polynomial/polyfit.m: Force return value to be a row vector. + 2005-06-15 Tom Holroyd <tomh@kurage.nimh.nih.gov> * general/isequal.m: Correct nargin check.
--- a/scripts/plot/__errcomm__.m +++ b/scripts/plot/__errcomm__.m @@ -33,7 +33,7 @@ function __errcomm__ (caller, varargin) if (nargin < 3) - usage ("%s (x,y,dy,'fmt',...)", caller); + usage ("%s (x, y, dy, \"fmt\", ...)", caller); endif nargs = length (varargin);
--- a/scripts/plot/__errplot__.m +++ b/scripts/plot/__errplot__.m @@ -34,7 +34,7 @@ ## Author: Teemu Ikonen <tpikonen@pcu.helsinki.fi> ## Keywords: errorbar, plotting -function __errplot__ (fstr,a1,a2,a3,a4,a5,a6) +function __errplot__ (fstr, a1, a2, a3, a4, a5, a6) if (nargin < 3 || nargin > 7) # at least three data arguments needed usage ("__errplot__ (fmt, arg1, ...)");
--- a/scripts/plot/__plt__.m +++ b/scripts/plot/__plt__.m @@ -68,7 +68,8 @@ endif elseif (x_set) if (y_set) - [data{j}, fmtstr] = __plt2__ (x, y, ""); + fmt = __pltopt__ (caller, ""); + [data{j}, fmtstr] = __plt2__ (x, y, fmt); have_data = true; x = next_arg; y_set = false;
--- a/scripts/plot/__pltopt1__.m +++ b/scripts/plot/__pltopt1__.m @@ -62,7 +62,7 @@ TITLE = "title"; if (nargin != 2) - usage ("__pltopt1__ (opt)"); + usage ("__pltopt1__ (caller, opt)"); endif if (! isstr (opt))
--- a/scripts/polynomial/polyfit.m +++ b/scripts/polynomial/polyfit.m @@ -99,4 +99,8 @@ endif + ## Return value should be a row vector. + + p = p.'; + endfunction
--- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,7 +1,7 @@ -2005-06-15 John W. Eaton <jwe@octave.org> - - * sysdep.cc (Fclc): Flush stdout stream before and after call to - command_editor::clear_screen. +2005-06-16 John W. Eaton <jwe@octave.org> + + * defaults.cc (loadpath): Don't do anything if value is unchanged. + If loadpath changes, also update Vlast_prompt_time. 2005-06-14 John W. Eaton <jwe@octave.org>
--- a/src/defaults.cc +++ b/src/defaults.cc @@ -48,6 +48,7 @@ #include "file-ops.h" #include "gripes.h" #include "help.h" +#include "input.h" #include "oct-obj.h" #include "ov.h" #include "parse.h" @@ -572,7 +573,7 @@ gripe_invalid_value_specified ("LOADPATH"); status = -1; } - else + else if (Vload_path != s) { // I'm not sure whether this causes more problems that it // solves... @@ -582,6 +583,16 @@ Vload_path = s; + // By resetting the last prompt time variable, we will force + // checks for out of date symbols even if the change to LOADPATH + // and subsequent function calls happen between prompts. + + // XXX FIXME XXX -- maybe we should rename + // Vlast_prompt_time_stamp since the new usage doesn't really + // fit with the current name? + + Vlast_prompt_time.stamp (); + update_load_path_dir_path (); }