From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: delete-file to trash Date: Thu, 27 May 2010 19:36:28 -0400 Message-ID: <87typsnchv.fsf@stupidchicken.com> References: <877hmvxyuv.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1275003404 12420 80.91.229.12 (27 May 2010 23:36:44 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 27 May 2010 23:36:44 +0000 (UTC) Cc: Leo , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri May 28 01:36:43 2010 connect(): No such file or directory 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.69) (envelope-from ) id 1OHmcy-0005Jh-Ep for ged-emacs-devel@m.gmane.org; Fri, 28 May 2010 01:36:40 +0200 Original-Received: from localhost ([127.0.0.1]:52181 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OHmcx-0001lA-NJ for ged-emacs-devel@m.gmane.org; Thu, 27 May 2010 19:36:39 -0400 Original-Received: from [140.186.70.92] (port=49860 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OHmcp-0001fJ-KA for emacs-devel@gnu.org; Thu, 27 May 2010 19:36:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OHmco-0002iX-CC for emacs-devel@gnu.org; Thu, 27 May 2010 19:36:31 -0400 Original-Received: from pantheon-po16.its.yale.edu ([130.132.50.72]:32852) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OHmco-0002iR-AJ for emacs-devel@gnu.org; Thu, 27 May 2010 19:36:30 -0400 Original-Received: from furry (dhcp128036014059.central.yale.edu [128.36.14.59]) (authenticated bits=0) by pantheon-po16.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id o4RNaSwu021570 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 27 May 2010 19:36:28 -0400 Original-Received: by furry (Postfix, from userid 1000) id 2080AC057; Thu, 27 May 2010 19:36:28 -0400 (EDT) In-Reply-To: (Stefan Monnier's message of "Sat, 22 May 2010 21:06:16 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2.50 (gnu/linux) X-YaleITSMailFilter: Version 1.2c (attachment(s) not renamed) X-detected-operating-system: by eggs.gnu.org: GNU/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:125316 Archived-At: Stefan Monnier writes: >> So, it seems better to flip the new FORCE argument to delete-file. We >> could change it to an argument ALLOW-TRASH, and change the doc of >> delete-by-moving-to-trash to say that it will only take effect on calls >> to `delete-file' that use the ALLOW-TRASH argument. This is backward >> incompatible but I don't see any better solution. > > 100% agreed. I've just committed a change to do this. Now, we have to whitelist the commands that should use trashing. So far, this includes interactive calls to `delete-file' and `delete-directory', `speedbar-item-delete', and `dired-do-flagged-delete' and `dired-do-delete'. One problem: it would be nice to have a simple interactive way to inhibit trashing in `dired-do-delete', just like `C-u M-x delete-file' inhibits trashing. However, currently the prefix argument is used by `dired-do-delete' to specify deleting the next N files.