From: Jeff Mincy <jeff(a)delphioutpost.com>
Date: Sun, 1 Jul 2001 13:52:19 -0400
Under 21.4.3 on windows (& cygwin), when I try to save my vm inbox I
have been getting:
Cannot write backup file; backing up in ~/%backup%~
This did not happen under 21.1.13.
I tracked this down to backup-buffer in files.el that does:
(copy-file real-file-name backupname t t)
Under 21.4.3, when I do
(copy-file "c:/home/jmincy/INBOX" "c:/home/jmincy/INBOX.~3333~"
t t)
I get
I/O error: No such file or directory, c:/home/jmincy/INBOX.~3333~
Also in 21.4.3, the following works without error:
(copy-file "c:/home/jmincy/INBOX" "c:/home/jmincy/INBOX.~3333~" t
nil)
The problem seems to be with the processing of `keep-time' argument,
which appears to have been changed since 21.1.13 (lisp_string_set_file_times
vs set_file_times, and more likely set_file_times has been changed).
As a workaround, the following seems to work.
(when (equal emacs-program-version "21.4.3")
(defadvice copy-file (before smash-keep-time-21-4-3 first activate)
(setq keep-time nil)))
-jeff