# HG changeset patch # User jwe # Date 1118953159 0 # Node ID 8db4eb48f5466e7678d15a09386d564306129552 # Parent 256dde4f6aea776cb68ee803c87ca2af02c0f2f6 [project @ 2005-06-16 20:19:18 by jwe] diff -r 256dde4f6aea -r 8db4eb48f546 scripts/ChangeLog --- a/scripts/ChangeLog Wed Jun 15 17:43:44 2005 +0000 +++ b/scripts/ChangeLog Thu Jun 16 20:19:19 2005 +0000 @@ -1,3 +1,7 @@ +2005-06-15 John W. Eaton + + * polynomial/polyfit.m: Force return value to be a row vector. + 2005-06-15 Tom Holroyd * general/isequal.m: Correct nargin check. diff -r 256dde4f6aea -r 8db4eb48f546 scripts/plot/__errcomm__.m --- a/scripts/plot/__errcomm__.m Wed Jun 15 17:43:44 2005 +0000 +++ b/scripts/plot/__errcomm__.m Thu Jun 16 20:19:19 2005 +0000 @@ -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); diff -r 256dde4f6aea -r 8db4eb48f546 scripts/plot/__errplot__.m --- a/scripts/plot/__errplot__.m Wed Jun 15 17:43:44 2005 +0000 +++ b/scripts/plot/__errplot__.m Thu Jun 16 20:19:19 2005 +0000 @@ -34,7 +34,7 @@ ## Author: Teemu Ikonen ## 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, ...)"); diff -r 256dde4f6aea -r 8db4eb48f546 scripts/plot/__plt__.m --- a/scripts/plot/__plt__.m Wed Jun 15 17:43:44 2005 +0000 +++ b/scripts/plot/__plt__.m Thu Jun 16 20:19:19 2005 +0000 @@ -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; diff -r 256dde4f6aea -r 8db4eb48f546 scripts/plot/__pltopt1__.m --- a/scripts/plot/__pltopt1__.m Wed Jun 15 17:43:44 2005 +0000 +++ b/scripts/plot/__pltopt1__.m Thu Jun 16 20:19:19 2005 +0000 @@ -62,7 +62,7 @@ TITLE = "title"; if (nargin != 2) - usage ("__pltopt1__ (opt)"); + usage ("__pltopt1__ (caller, opt)"); endif if (! isstr (opt)) diff -r 256dde4f6aea -r 8db4eb48f546 scripts/polynomial/polyfit.m --- a/scripts/polynomial/polyfit.m Wed Jun 15 17:43:44 2005 +0000 +++ b/scripts/polynomial/polyfit.m Thu Jun 16 20:19:19 2005 +0000 @@ -99,4 +99,8 @@ endif + ## Return value should be a row vector. + + p = p.'; + endfunction diff -r 256dde4f6aea -r 8db4eb48f546 src/ChangeLog --- a/src/ChangeLog Wed Jun 15 17:43:44 2005 +0000 +++ b/src/ChangeLog Thu Jun 16 20:19:19 2005 +0000 @@ -1,7 +1,7 @@ -2005-06-15 John W. Eaton - - * sysdep.cc (Fclc): Flush stdout stream before and after call to - command_editor::clear_screen. +2005-06-16 John W. Eaton + + * 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 diff -r 256dde4f6aea -r 8db4eb48f546 src/defaults.cc --- a/src/defaults.cc Wed Jun 15 17:43:44 2005 +0000 +++ b/src/defaults.cc Thu Jun 16 20:19:19 2005 +0000 @@ -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 (); } diff -r 256dde4f6aea -r 8db4eb48f546 src/sysdep.cc --- a/src/sysdep.cc Wed Jun 15 17:43:44 2005 +0000 +++ b/src/sysdep.cc Thu Jun 16 20:19:19 2005 +0000 @@ -394,7 +394,6 @@ @end deftypefn") { command_editor::clear_screen (); - std::cout.flush (); return octave_value_list (); }