Now I made new patch for function move-file-to-trash (maybe as you wrote). step to enable move-file-to-trash: cd src patch -i patch__enable_delete_to_trash.diff make all install Run emacs (load-file "move-file-to-trash.el") (setq delete-by-moving-to-trash t) I think it is useful. And I wish that someone else improve the code. ----- Original Message ----- From: "Stefan Monnier" To: "Toru TSUNEYOSHI" Cc: Sent: Thursday, April 24, 2008 12:35 AM Subject: Re: patch about moving file (or directory) to the Recycle Bin on Windows NT series > > I made a revised edition (including w32.h). > > I suggest we use a slightly different interface: > 1 - Implement a new Elisp function `move-file-to-trash'. > 2 - Add a config variable `delete-by-moving-to-trash' (default to nil). > > The implementation of delete-by-moving-to-trash will at first be naive: > if set, delete-file delegates the job to move-file-to-trash. > > > Stefan > > > PS: We will probably want to refine this implementation at some point so > that only some uses of delete-file are redirected to move-file-to-trash, > but let's start with that.