From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: patch about moving file (or directory) to the Recycle Bin on Windows NT series Date: Wed, 23 Apr 2008 11:35:17 -0400 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1208965023 694 80.91.229.12 (23 Apr 2008 15:37:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 23 Apr 2008 15:37:03 +0000 (UTC) Cc: emacs-devel@gnu.org To: "Toru TSUNEYOSHI" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Apr 23 17:37:37 2008 connect(): Connection refused 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 1Joh22-0005mF-LF for ged-emacs-devel@m.gmane.org; Wed, 23 Apr 2008 17:37:14 +0200 Original-Received: from localhost ([127.0.0.1]:57697 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Joh1M-0000cy-Sc for ged-emacs-devel@m.gmane.org; Wed, 23 Apr 2008 11:36:32 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Joh0C-0008Ox-Ig for emacs-devel@gnu.org; Wed, 23 Apr 2008 11:35:20 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Joh0B-0008Nx-4R for emacs-devel@gnu.org; Wed, 23 Apr 2008 11:35:19 -0400 Original-Received: from [199.232.76.173] (port=52347 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Joh0A-0008Nn-Ip for emacs-devel@gnu.org; Wed, 23 Apr 2008 11:35:18 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Joh0A-00080V-Aw for emacs-devel@gnu.org; Wed, 23 Apr 2008 11:35:18 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Aj8FAOHzDkhFxIud/2dsb2JhbACBUqwe X-IronPort-AV: E=Sophos;i="4.25,699,1199682000"; d="scan'208";a="18944168" Original-Received: from smtp.pppoe.ca (HELO smtp.teksavvy.com) ([65.39.196.238]) by ironport2-out.teksavvy.com with ESMTP; 23 Apr 2008 11:35:17 -0400 Original-Received: from pastel.home ([69.196.139.157]) by smtp.teksavvy.com (Internet Mail Server v1.0) with ESMTP id DTG81917; Wed, 23 Apr 2008 11:35:17 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id A35CC8064; Wed, 23 Apr 2008 11:35:17 -0400 (EDT) In-Reply-To: (Toru TSUNEYOSHI's message of "Tue, 22 Apr 2008 06:32:12 +0900") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. 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:95843 Archived-At: > 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.