From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Enila Nero Newsgroups: gmane.emacs.help Subject: Re: Sending files to the recycle bin via dired Date: Sun, 09 Jan 2005 09:33:03 GMT Message-ID: References: Reply-To: geortal@yahoo.com NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1105263326 24714 80.91.229.6 (9 Jan 2005 09:35:26 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 9 Jan 2005 09:35:26 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jan 09 10:35:21 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CnZTl-00035Z-00 for ; Sun, 09 Jan 2005 10:35:21 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1CnZfC-0007J0-Lx for geh-help-gnu-emacs@m.gmane.org; Sun, 09 Jan 2005 04:47:10 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!cyclone1.gnilink.net!spamkiller.gnilink.net!gnilink.net!trnddc06.POSTED!372e6f02!not-for-mail Original-Newsgroups: gnu.emacs.help Cancel-Lock: sha1:C1NXb9lf0YEbj6A1YHHGVGpZh/0= Original-Lines: 37 Original-NNTP-Posting-Host: 4.43.183.182 Original-X-Complaints-To: abuse@verizon.net Original-X-Trace: trnddc06 1105263183 4.43.183.182 (Sun, 09 Jan 2005 04:33:03 EST) Original-NNTP-Posting-Date: Sun, 09 Jan 2005 04:33:03 EST Original-Xref: shelby.stanford.edu gnu.emacs.help:127757 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:23226 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:23226 Enila Nero writes: > Enila Nero writes: > >> Is there a way to redefine the delete-file function so that when >> deleting files from a dired buffer they are send to the recycle bin >> instead of being deleted without a chance to undelete? >> >> Thanks, >> >> Enila > > Although it should be obvious Emacs is on Windows (XP). I am using > Emacs 21.3.50. No solution was suggested but I was able find this solution: I installed the freeware program fundelete http://www.sysinternals.com/ntw2k/source/fundelete.shtml (source code is also provided.) It replaces the Windows recycle bin. It captures all files deleted by the user or from within programs. One can define filters to avoid rescuing files that should be deleted period, like those in temp directories or of certain extensions. It works for files deleted within dired buffers, i.e. they are send to fundelete recycle bin. HOWEVER files deleted from a cygwin bash shell using rm will be as dead and gone as they are on a unix machine (to the extend one does employ special recovery programs.) Use fundelete at your own risk. Enila