From xah@xahlee.org Thu Jun 12 01:39:47 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-5.0 required=4.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 12 Jun 2008 08:39:48 +0000 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m5C8depU001599 for ; Thu, 12 Jun 2008 01:39:41 -0700 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K6iLL-0001P5-Ri for bug-gnu-emacs@gnu.org; Thu, 12 Jun 2008 04:39:39 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K6iLJ-0001LC-BD for bug-gnu-emacs@gnu.org; Thu, 12 Jun 2008 04:39:37 -0400 Received: from [199.232.76.173] (port=42910 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K6iLJ-0001L5-81 for bug-gnu-emacs@gnu.org; Thu, 12 Jun 2008 04:39:37 -0400 Received: from mout.perfora.net ([74.208.4.194]:50939) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1K6iLJ-0006Vs-28 for bug-gnu-emacs@gnu.org; Thu, 12 Jun 2008 04:39:37 -0400 Received: from [90.0.0.5] (adsl-69-226-234-243.dsl.pltn13.pacbell.net [69.226.234.243]) by mrelay.perfora.net (node=mrus0) with ESMTP (Nemesis) id 0MKp8S-1K6iL6305p-0003u3; Thu, 12 Jun 2008 04:39:26 -0400 Mime-Version: 1.0 (Apple Message framework v753.1) Content-Transfer-Encoding: quoted-printable Message-Id: Content-Type: text/plain; charset=UTF-8; delsp=yes; format=flowed To: bug-gnu-emacs@gnu.org From: xah lee Subject: wdired-change-to-wdired-mode can cause file deletion Date: Thu, 12 Jun 2008 01:39:07 -0700 X-Mailer: Apple Mail (2.753.1) X-Provags-ID: V01U2FsdGVkX1+dFheMiDnL6OULqJUWyVpttbjXffTsXnGmYn/ 0lyy7B3HHf2PF+quQFZ787ocTQ4oMHJ8JtRou0VlIDeYlBYvV6 n+oVES5xeJI5Mq+/f7p6g== X-detected-kernel: by monty-python.gnu.org: Linux 2.6? (barebone, rare!) 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 =20 yes, it'll be deleted, and it wont be renamed. i.e. you lose a file. This can be reproduced if you created 2 files, one named A and other =20 B. Then renamed them to B and A. (Possibly you will need to create 3 =20 files and rename in particular cycle depending on how emacs choose =20 the order to rename... The key is to get emacs to prompte for the =20 overwrite of a file that should be renamed to something else later.) This behavior is slightly unexpected and caused me to retrieve from =20 my backup disk. (the files are images and never edited, so it isn't =20 in emacs's backup) Xah =E2=88=91 http://xahlee.org/ =E2=98=84 From monnier@iro.umontreal.ca Sat Jun 14 10:02:04 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-4.5 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER, MURPHY_DRUGS_REL8 autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 394-done) by emacsbugs.donarmstrong.com; 14 Jun 2008 17:02:05 +0000 Received: from ironport2-out.teksavvy.com (ironport2-out.pppoe.ca [206.248.154.182]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m5EH20iC025924 for <394-done@emacsbugs.donarmstrong.com>; Sat, 14 Jun 2008 10:02:02 -0700 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AhcFAO+VU0jO+KWv/2dsb2JhbACBW6sX X-IronPort-AV: E=Sophos;i="4.27,644,1204520400"; d="scan'208";a="22520772" Received: from smtp.pppoe.ca (HELO smtp.teksavvy.com) ([65.39.196.238]) by ironport2-out.teksavvy.com with ESMTP; 14 Jun 2008 13:01:52 -0400 Received: from pastel.home ([206.248.165.175]) by smtp.teksavvy.com (Internet Mail Server v1.0) with ESMTP id UXP59352; Sat, 14 Jun 2008 13:01:52 -0400 Received: by pastel.home (Postfix, from userid 20848) id 39E5F8336; Sat, 14 Jun 2008 13:01:52 -0400 (EDT) From: Stefan Monnier To: 394-done@debbugs.gnu.org Subject: Re: bug#394: wdired-change-to-wdired-mode can cause file deletion Message-ID: References: Date: Sat, 14 Jun 2008 13:01:52 -0400 In-Reply-To: (xah lee's message of "Thu, 12 Jun 2008 01:39:07 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii > 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 From unknown Sat Aug 16 23:38:14 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: $requester Subject: Internal Control Message-Id: bug archived. Date: Sun, 13 Jul 2008 14:24:03 +0000 User-Agent: Fakemail v42.6.9 # A New Hope # A log time ago, in a galaxy far, far away # something happened. # # Magically this resulted in the following # action being taken, but this fake control # message doesn't tell you why it happened # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator