temp files, was: how to re-define the HOME directory?




On Fri, 5 Jun 2009, Andrej Vodopivec wrote:

< plot-temp-file is also used in share packages, not just plot.lisp. If
< you change it, you should make sure you don't break any share
< packages.

Andrej,
Thank you for pointing this out. You are correct: share/draw.lisp and
share/implicit-plot.lisp both use plot-temp-file. Moreover, it does 
appear that these two are broken by this change to plot-temp-file.

There is only one reason why this change would break foo:
foo is calling plot-temp-file more than once to set the same
output file. 

Perhaps their author(s) could look into this.


< 
< Also, if plot functions start producing new files each time you plot
< something, someone should make sure they get deleted. If they are not
< in /tmp and on windows they will not be removed by the system.

This is most easily handled by adding a hook to quit(), having a
session keep track of the tempfiles it produces, and removing them at
quit().

Leo

-- 
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.