GNU bug report logs - #394
wdired-change-to-wdired-mode can cause file deletion

Previous Next

Package: emacs;

Reported by: xah lee <xah <at> xahlee.org>

Date: Thu, 12 Jun 2008 08:45:03 UTC

Severity: normal

Done: Stefan Monnier <monnier <at> iro.umontreal.ca>

Bug is archived. No further changes may be made.

Full log


Message #10 received at 394-done <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: 394-done <at> debbugs.gnu.org
Subject: Re: bug#394: wdired-change-to-wdired-mode can cause file deletion
Date: Sat, 14 Jun 2008 13:01:52 -0400
> In dired, do M-x wdired-change-to-wdired-mode.
> Then, swap 2 files's names.
> Emacs will ask if the first file should be overwritten. If answer yes, it'll
> be deleted, and it wont be renamed. i.e. you lose a file.

Indeed, dired's rename is a "parallel" rename, whereas our underlying
C primitives only offer sequential renaming, so we need to de more work
to handle those cases.

I've installed a patch into the CVS trunk which should fix it (or at
least catch the problem before it's too late).


        Stefan




This bug report was last modified 16 years and 346 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.