From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.bugs Subject: bug#1440: Concerning delete-by-moving-to-trash on free systems Date: Fri, 28 Nov 2008 22:58:44 +0100 Message-ID: <877i6ncy23.fsf@thinkpad.tsdh.de> References: <87od01tr8o.fsf@thinkpad.tsdh.de> <492E9E4D.7040108@harpegolden.net> <87d4ghtgkf.fsf@thinkpad.tsdh.de> <492EB022.8080905@harpegolden.net> <87tz9trzb8.fsf@thinkpad.tsdh.de> <878wr5rvik.fsf@thinkpad.tsdh.de> Reply-To: Tassilo Horn , 1440@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1227910240 9547 80.91.229.12 (28 Nov 2008 22:10:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 28 Nov 2008 22:10:40 +0000 (UTC) Cc: 1440@emacsbugs.donarmstrong.com To: David De La Harpe Golden Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Nov 28 23:11:42 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1L6BYq-0008BF-Ge for geb-bug-gnu-emacs@m.gmane.org; Fri, 28 Nov 2008 23:11:41 +0100 Original-Received: from localhost ([127.0.0.1]:52577 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L6BXb-00035a-Rw for geb-bug-gnu-emacs@m.gmane.org; Fri, 28 Nov 2008 17:10:23 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L6BXX-000351-NV for bug-gnu-emacs@gnu.org; Fri, 28 Nov 2008 17:10:19 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L6BXW-00034B-A6 for bug-gnu-emacs@gnu.org; Fri, 28 Nov 2008 17:10:18 -0500 Original-Received: from [199.232.76.173] (port=39630 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L6BXV-000341-Tu for bug-gnu-emacs@gnu.org; Fri, 28 Nov 2008 17:10:17 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:45548) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1L6BXV-0003Ot-92 for bug-gnu-emacs@gnu.org; Fri, 28 Nov 2008 17:10:17 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mASMAB9H001493; Fri, 28 Nov 2008 14:10:12 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id mASM556A032032; Fri, 28 Nov 2008 14:05:05 -0800 X-Loop: don@donarmstrong.com Resent-From: Tassilo Horn Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Fri, 28 Nov 2008 22:05:04 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 1440 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 1440-submit@emacsbugs.donarmstrong.com id=B1440.122790953429944 (code B ref 1440); Fri, 28 Nov 2008 22:05:04 +0000 Original-Received: (at 1440) by emacsbugs.donarmstrong.com; 28 Nov 2008 21:58:54 +0000 Original-Received: from out1.smtp.messagingengine.com (out1.smtp.messagingengine.com [66.111.4.25]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mASLwova029936 for <1440@emacsbugs.donarmstrong.com>; Fri, 28 Nov 2008 13:58:52 -0800 Original-Received: from compute1.internal (compute1.internal [10.202.2.41]) by out1.messagingengine.com (Postfix) with ESMTP id 3CF1B1C8F8A; Fri, 28 Nov 2008 16:58:50 -0500 (EST) Original-Received: from heartbeat2.messagingengine.com ([10.202.2.161]) by compute1.internal (MEProxy); Fri, 28 Nov 2008 16:58:50 -0500 X-Sasl-enc: f4VmxbFRwsEaT6GAKNJMjbPlnsPasLFEj7j/1tVQ5XeQ 1227909529 Original-Received: from thinkpad.tsdh.de (p54AF254C.dip0.t-ipconnect.de [84.175.37.76]) by mail.messagingengine.com (Postfix) with ESMTPA id 18CD02BC8D; Fri, 28 Nov 2008 16:58:48 -0500 (EST) In-Reply-To: (David De La Harpe Golden's message of "Fri, 28 Nov 2008 18:53:34 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Fri, 28 Nov 2008 17:10:18 -0500 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:22748 Archived-At: David De La Harpe Golden writes: >> Delete a directory foo which contains the files a and b recursively >> (from within dired). Then goto the trash-directory. Now foo, a and >> b are side by side. > > Not 100% sure, but one guess: maybe dired is itself recursing into the > directory and deleting each file and then deleting the directory > rather than deleting the directory as one operation, thus causing the > flattening. Yes, that's likely. Anyway, I don't think that is what users would expect and it makes recovery of deleted directories difficult. >> Now delete another file named a. This file is really deleted, >> because a already exists in trash. (Overwriting would be as bad as >> the current decision.) > > Uh. Not that I'm a fan of the current builtin trashcan routine, but > are you sure that it is actually losing data? > > The current emacs move-file-to-trash _should_ be generating > alternative in-trash names for files with clashing filenames with > find-backup-file-name, see function body. > > Some GUI file managers may be treating the generated names as "hidden" > backup files due to the naming scheme I use dired. > - can you verify you don't have "a.~1~" files in your ~/.Trash/ > directory from the command line? Yes. But I have ,----[ C-h v backup-directory-alist RET ] | backup-directory-alist is a variable defined in `files.el'. | Its value is | ((".*" . "~/.backupFiles/")) `---- and indeed, there are the backup files. I'd propose to let-unbind backup-directory-alist when making backups for deleted files. They always should be in .Trash. Bye, Tassilo