I never use stringout.
I edit a file of maxima definitions, say functions f1, f2, and various
commands.
The first line of the file looks like kill(f1,f2, .....) .
I usually use an emacs editor. It is possible to run a maxima in an
emacs buffer,
though I usually don't do that. I load the file into wxmaxima.
If you really want to use stringout the way you seem to be doing it, you
can try kill(all) or
kill(labels) to remove the old stuff.
RJF
On 4/21/2013 8:48 AM, Sheldon Newhouse wrote:
> Hello,
> I am looking for suggestions for error control in various maxima
> programs.
> As it stands now, most of my programs require the user to make sure
> that assumptions are valid in running routines. If they fail, then
> the routines of course give errors.
> Suppose I run such a routine which produces an error in a session
> and then I save the input with stringout("my_file.mac",input).
>
> In order to reload the file "my_file.mac" I have to edit it and
> remove the routine which caused the error or the command
> load(my_file)
> will fail.
>
> In a typical session in which errors are introduced they are
> subsequently fixed and one continues.
> But, later saving and reloading with "stringout" does not remove the
> earlier bad routines (unless one looks back and avoids the offending
> command numbers, etc.). The latter is cumbersome to say the least
> after many screens have scrolled up.
>
> Some time ago I started putting in error control subroutines in each
> function so that the errors would not impede reloading after the
> stringout save commands. This is also quite cumbersome, so I am back
> to the re-edit before reload procedure.
>
> Is there some setting or command which can automatically be loaded at
> the beginning of a session so that repeated use of saving and loading
> sessions will work even if errors are introduced as a file is being
> loaded?
>
> TIA,
> -sen
>
>
> -------------------------------------------------------------------------------------------
> Sheldon E. Newhouse | e-mail: sen1 at math.msu.edu |
> Mathematics Department |
> Michigan State University | telephone:
> 517-355-9684 |
> E. Lansing, MI 48824-1027 USA | FAX:
> 517-432-1562 |
> -------------------------------------------------------------------------------------------
>
>
> _______________________________________________
> Maxima mailing list
> Maxima at math.utexas.edu
> http://www.math.utexas.edu/mailman/listinfo/maxima