From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Ekstrand Newsgroups: gmane.emacs.devel Subject: Re: Why @#! is not Emacs using the Recycle bin on w32? Date: Thu, 28 Aug 2008 18:41:53 -0500 Message-ID: <878wug1zcu.fsf@jehiel.elehack.net> References: <48B7288E.3040503@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1219968039 555 80.91.229.12 (29 Aug 2008 00:00:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 29 Aug 2008 00:00:39 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Aug 29 02:01:33 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KYrQg-0002rK-S6 for ged-emacs-devel@m.gmane.org; Fri, 29 Aug 2008 02:01:31 +0200 Original-Received: from localhost ([127.0.0.1]:59593 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KYrPh-0001X0-3Q for ged-emacs-devel@m.gmane.org; Thu, 28 Aug 2008 20:00:29 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KYrPc-0001WT-It for emacs-devel@gnu.org; Thu, 28 Aug 2008 20:00:24 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KYrPb-0001W7-0u for emacs-devel@gnu.org; Thu, 28 Aug 2008 20:00:23 -0400 Original-Received: from [199.232.76.173] (port=50360 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KYrPa-0001W4-P6 for emacs-devel@gnu.org; Thu, 28 Aug 2008 20:00:22 -0400 Original-Received: from main.gmane.org ([80.91.229.2]:38414 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KYrPa-0006Mb-5H for emacs-devel@gnu.org; Thu, 28 Aug 2008 20:00:22 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1KYrPT-0002PL-6M for emacs-devel@gnu.org; Fri, 29 Aug 2008 00:00:15 +0000 Original-Received: from elehack.net ([216.243.177.100]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 29 Aug 2008 00:00:15 +0000 Original-Received: from michael by elehack.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 29 Aug 2008 00:00:15 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 35 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: elehack.net User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:0PWb6KzpfslnvniYhHdaAHJzQcY= X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:103118 Archived-At: "Lennart Borgman (gmail)" writes: > I just deleted a file because I misunderstood dired. I needed that file > (of course). > > And then I found that dired did not make any backup and did not use > windows Recycle bin. Recycle bins are a shell-level niceism that are not central to the operating system. If you type 'del file' at the Windows command prompt, it will not use the recycle bin. > This behaviour does not make me trust for example GNU/Linux. I would > beleive this is a behaviour implemented after how things work there. Is > this correct? Does Emacs behave this way on GNU/Linus too? Yes. Emacs, when it deletes a file, tells the operating system to delete it. The major desktop environments all provide a recycle bin-like feature (usually called Trash) when you're using their file management facilities, but this is not a function of the operating system itself. I would say, however, that allowing this to cause you to not trust GNU/Linux is a non sequitor. Operating systems provide a "remove file" function to applications, and on most of them (both Windows and the Linux kernel included) actually remove the file when it is called. To move to a recycle bin, you need to use move or something like it to put the file in the recycle bin. Some applications do this. Some do not. - Michael -- mouse, n: A device for pointing at the xterm in which you want to type. Confused by the strange files? I cryptographically sign my messages. For more information see .