From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Lennart Borgman (gmail)" Newsgroups: gmane.emacs.devel Subject: Re: Why @#! is not Emacs using the Recycle bin on w32? Date: Fri, 29 Aug 2008 02:16:40 +0200 Message-ID: <48B73FE8.70805@gmail.com> References: <48B7288E.3040503@gmail.com> <878wug1zcu.fsf@jehiel.elehack.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1219969027 3268 80.91.229.12 (29 Aug 2008 00:17:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 29 Aug 2008 00:17:07 +0000 (UTC) Cc: emacs-devel@gnu.org To: Michael Ekstrand Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Aug 29 02:18:01 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 1KYrgd-0007Bi-Fn for ged-emacs-devel@m.gmane.org; Fri, 29 Aug 2008 02:18:01 +0200 Original-Received: from localhost ([127.0.0.1]:45667 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KYrfd-0004qs-KM for ged-emacs-devel@m.gmane.org; Thu, 28 Aug 2008 20:16:57 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KYrfZ-0004qF-8z for emacs-devel@gnu.org; Thu, 28 Aug 2008 20:16:53 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KYrfX-0004po-Rc for emacs-devel@gnu.org; Thu, 28 Aug 2008 20:16:52 -0400 Original-Received: from [199.232.76.173] (port=48444 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KYrfX-0004pj-Kt for emacs-devel@gnu.org; Thu, 28 Aug 2008 20:16:51 -0400 Original-Received: from ch-smtp02.sth.basefarm.net ([80.76.149.213]:58961) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KYrfW-0002If-D2 for emacs-devel@gnu.org; Thu, 28 Aug 2008 20:16:51 -0400 Original-Received: from c83-254-151-87.bredband.comhem.se ([83.254.151.87]:65177 helo=[127.0.0.1]) by ch-smtp02.sth.basefarm.net with esmtp (Exim 4.68) (envelope-from ) id 1KYrfS-0006pd-6n; Fri, 29 Aug 2008 02:16:46 +0200 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666 In-Reply-To: <878wug1zcu.fsf@jehiel.elehack.net> X-Enigmail-Version: 0.95.7 X-Antivirus: avast! (VPS 080828-0, 2008-08-28), Outbound message X-Antivirus-Status: Clean X-Originating-IP: 83.254.151.87 X-Scan-Result: No virus found in message 1KYrfS-0006pd-6n. X-Scan-Signature: ch-smtp02.sth.basefarm.net 1KYrfS-0006pd-6n 8adddb7f8c57a088bfbbd7a6dd5b75a1 X-detected-kernel: by monty-python.gnu.org: Linux 2.6? (barebone, rare!) 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:103120 Archived-At: Michael Ekstrand wrote: > "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. Thanks, yes, I know, but I don't understand why it is important here. > Yes. Emacs, when it deletes a file, tells the operating system to > delete it. Thanks. > 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. On w32 you call a shell api with some flags. I would expect it to be similar on other OS because this is a very central operation. BTW David De La Harpe Golden mentioned versioning instead of recycle bins. Some quick checks on the net showed that MS was moving in that direction (maybe it is already in vista?). Of course I expect GNU/Linux to do that to. And I actually expect the shells to use it too.