From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: RE: Why @#! is not Emacs using the Recycle bin on w32? Date: Fri, 29 Aug 2008 13:56:10 -0700 Message-ID: <001201c90a19$aaf5b7a0$0200a8c0@us.oracle.com> References: <48B7288E.3040503@gmail.com> <87y72f603p.fsf@comm.utoronto.ca> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1220043423 30092 80.91.229.12 (29 Aug 2008 20:57:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 29 Aug 2008 20:57:03 +0000 (UTC) To: "'Gilaras Drakeson'" , Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Aug 29 22:57: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 1KZB2B-0003f7-W5 for ged-emacs-devel@m.gmane.org; Fri, 29 Aug 2008 22:57:32 +0200 Original-Received: from localhost ([127.0.0.1]:54164 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KZB1D-0000PL-Hn for ged-emacs-devel@m.gmane.org; Fri, 29 Aug 2008 16:56:31 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KZB12-0000Je-72 for emacs-devel@gnu.org; Fri, 29 Aug 2008 16:56:20 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KZB10-0000Iw-Um for emacs-devel@gnu.org; Fri, 29 Aug 2008 16:56:19 -0400 Original-Received: from [199.232.76.173] (port=49938 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KZB10-0000Ip-K2 for emacs-devel@gnu.org; Fri, 29 Aug 2008 16:56:18 -0400 Original-Received: from agminet01.oracle.com ([141.146.126.228]:57066) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KZB10-000336-4Z for emacs-devel@gnu.org; Fri, 29 Aug 2008 16:56:18 -0400 Original-Received: from rgmgw1.us.oracle.com (rgmgw1.us.oracle.com [138.1.186.110]) by agminet01.oracle.com (Switch-3.2.4/Switch-3.1.7) with ESMTP id m7TKuD3W012320; Fri, 29 Aug 2008 15:56:13 -0500 Original-Received: from acsmt700.oracle.com (acsmt700.oracle.com [141.146.40.70]) by rgmgw1.us.oracle.com (Switch-3.2.4/Switch-3.2.4) with ESMTP id m7TKuCgb012849; Fri, 29 Aug 2008 14:56:13 -0600 Original-Received: from dradamslap1 (/69.181.100.12) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 29 Aug 2008 13:56:12 -0700 X-Mailer: Microsoft Office Outlook 11 In-reply-to: <87y72f603p.fsf@comm.utoronto.ca> Thread-Index: AckKFh7bDWu+frqLRF2iMPWmBiOUsAAAK2lg X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3350 X-Brightmail-Tracker: AAAAAQAAAAI= X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Whitelist: TRUE X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 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:103208 Archived-At: > Can we have another dired keybinding for move-file-to-trash? > (e.g., `b', with companion `% b'. This can be called dired-do-bury). > > IMO, both delete and move-file-to-trash are useful. Yes, they are. On Windows (not in Emacs), by default (you can change this by configuring the Recycle Bin) the `delete' key sends a file to the Recycle Bin and `S-delete' deletes it permanently (after confirmation). Personally, I use `S-delete' on Windows 99% of the time. I would like to be able to configure the Recycle Bin to have `delete' and `S-delete' just swap places (so I'd use `S-delete' only 1% of the time, when I wanted to use the recycle bin), but the only configuration alternative, AFAIK, is to have deleted files never go to the Recycle Bin. For Emacs, we could do this: By default, `delete' deletes the file and `S-delete' sends it to the Recycle Bin, but with non-nil `delete-by-moving-to-trash' these would be reversed: `delete' would send to the Recycle Bin and `S-delete' would delete the file (a la Windows).