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: Sun, 25 May 2008 07:22:44 -0400 Message-ID: References: <48393880.4030905@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1211714656 13865 80.91.229.12 (25 May 2008 11:24:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 25 May 2008 11:24:16 +0000 (UTC) Cc: emacs-devel@gnu.org To: Jason Rumney Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun May 25 13:24:57 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 1K0ELP-0002we-Tq for ged-emacs-devel@m.gmane.org; Sun, 25 May 2008 13:24:56 +0200 Original-Received: from localhost ([127.0.0.1]:60495 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K0EKf-0003QN-2F for ged-emacs-devel@m.gmane.org; Sun, 25 May 2008 07:24:09 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K0EJQ-0002ur-Dl for emacs-devel@gnu.org; Sun, 25 May 2008 07:22:52 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K0EJO-0002t7-EY for emacs-devel@gnu.org; Sun, 25 May 2008 07:22:51 -0400 Original-Received: from [199.232.76.173] (port=58130 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K0EJO-0002sz-2o for emacs-devel@gnu.org; Sun, 25 May 2008 07:22:50 -0400 Original-Received: from 206-248-174-248.dsl.teksavvy.com ([206.248.174.248]:45348 helo=ceviche.home) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1K0EJK-0006u3-U0; Sun, 25 May 2008 07:22:47 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id D9894B400C; Sun, 25 May 2008 07:22:44 -0400 (EDT) In-Reply-To: <48393880.4030905@gnu.org> (Jason Rumney's message of "Sun, 25 May 2008 10:59:28 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) X-Greylist: delayed 119723 seconds by postgrey-1.27 at monty-python; Sun, 25 May 2008 07:22:46 EDT 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:97688 Archived-At: >>> (defvar trash-directory "~/.trash" > Is this deliberate, to not interfere with the standard "~/.Trash" directory? I don't think so. So, feel free to replace it with ~/.Trash. >>> (cond >>> ((eq system-type 'windows-nt) >>> (w32-move-file-to-trash filename)) > This might be better as > ((fboundp 'system-move-file-to-trash) > (system-move-file-to-trash filename)) > Then adding a proper implementation for the freedesktop.org standard will be > as simple as defining such a function in the GTK (for example) > code. Likewise for Mac OSX. Sounds fine, Stefan