Re: any lisper out there?

Forrest Young <[email protected]> Thu, 30 May 2002 11:42:45 -0400
Newsgroups gmane.lisp.statistics
Organization ViSualStats
Message-ID <[email protected]>
you can use ignore-errors

Frederic Udina wrote:

> Hi silent lispers,
>
> I have a problem and seek for a solution.
>
> Within of a lisp program,
> I want to copy a file from the current directory to a system directory.
> It could be the case (it is often) that the system directory is
> write-protected and so (rename-file old new) gives an error.
>
> How can I prevent the error? Is the function ERRSET working? Does it
> anything useful?
>
> ERRSET
> [function-doc]
> Args: (expr [pflag])
> Traps errors occurring during the evaluation of EXPR. PFLAG controls
> printing
> of the error message. Returns the value of the last expression consed with
> NIL or NIL.
>
> Any clue?
>
>  Frederic Udina
>   ____________________________________________________________________
>   <[email protected]> Dept. D'Economia i Empresa   Universitat Pompeu Fabra
>                   Ramon Trias Fargas, 25-27      08005 Barcelona SPAIN
>   tel. 34- 935421756/1763 fax: 34- 935421746     http://libiya.upf.es/
>   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>   There are many here among us who feel that life is but a joke  B.Dy.