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: delete-file to trash Date: Sat, 22 May 2010 21:06:16 -0400 Message-ID: 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 1274576788 31262 80.91.229.12 (23 May 2010 01:06:28 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 23 May 2010 01:06:28 +0000 (UTC) Cc: Leo , emacs-devel@gnu.org To: Chong Yidong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun May 23 03:06:27 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 1OFze5-0007Kw-4q for ged-emacs-devel@m.gmane.org; Sun, 23 May 2010 03:06:25 +0200 Original-Received: from localhost ([127.0.0.1]:59242 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OFze4-0008Gn-Lj for ged-emacs-devel@m.gmane.org; Sat, 22 May 2010 21:06:24 -0400 Original-Received: from [140.186.70.92] (port=38560 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OFzdy-0008DV-8Z for emacs-devel@gnu.org; Sat, 22 May 2010 21:06:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OFzdw-00073M-QO for emacs-devel@gnu.org; Sat, 22 May 2010 21:06:18 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:50352 helo=ironport2-out.pppoe.ca) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OFzdw-00073I-Mh for emacs-devel@gnu.org; Sat, 22 May 2010 21:06:16 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvsEAN8b+EtFpZMM/2dsb2JhbACeEHK8Q4UTBIw/ X-IronPort-AV: E=Sophos;i="4.53,284,1272859200"; d="scan'208";a="64854916" Original-Received: from 69-165-147-12.dsl.teksavvy.com (HELO pastel.home) ([69.165.147.12]) by ironport2-out.pppoe.ca with ESMTP; 22 May 2010 21:06:16 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 1B6A88175; Sat, 22 May 2010 21:06:16 -0400 (EDT) In-Reply-To: <877hmvxyuv.fsf@stupidchicken.com> (Chong Yidong's message of "Sat, 22 May 2010 20:09:44 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.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:125093 Archived-At: > 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. > If we do this, I'd also like to turn the trash on by default, on systems > where there is a trash (i.e. on Windows, and on machines where a > Freedesktop trash is detected). Fine by me. Stefan PS: And yes, for interactive calls to delete-file, the `allow-trash' should be non-nil, I think.