bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: backup-buffer-copy loops if old backup can't be deleted


From: martin rudalics
Subject: Re: backup-buffer-copy loops if old backup can't be deleted
Date: Tue, 21 Aug 2007 17:28:21 +0200
User-agent: Mozilla Thunderbird 1.0 (Windows/20041206)

>>Suppose the file to-name exists but cannot be
>>deleted.  `copy-file' will raise its `file-already-exists' error and you
>>remain trapped in that loop.
>
>
> No, if the file cannot be deleted, the delete-file will signal a
> file-error so copy-file doesn't even get a chance to signal a
> file-already-exists error because it doesn't get called at all. As the
> outer condition-case doesn't catch file-error, the signal will propagate
> up the call stack.

I stand corrected.  The file-error is caught in `backup-buffer' and
further file-errors don't get trapped.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]