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: Sun, 23 May 2010 09:37:22 -0400 Message-ID: References: <877hmvxyuv.fsf@stupidchicken.com> <87hblz1hxi.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 1274622584 4114 80.91.229.12 (23 May 2010 13:49:44 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 23 May 2010 13:49:44 +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 15:49:42 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 1OGBYj-0007kV-Hz for ged-emacs-devel@m.gmane.org; Sun, 23 May 2010 15:49:41 +0200 Original-Received: from localhost ([127.0.0.1]:35844 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OGBYj-0003A0-0H for ged-emacs-devel@m.gmane.org; Sun, 23 May 2010 09:49:41 -0400 Original-Received: from [140.186.70.92] (port=37980 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OGBXQ-0001x4-09 for emacs-devel@gnu.org; Sun, 23 May 2010 09:48:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OGBMp-0003El-AG for emacs-devel@gnu.org; Sun, 23 May 2010 09:37:24 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.183]:41657 helo=ironport2-out.pppoe.ca) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OGBMp-0003Ed-38 for emacs-devel@gnu.org; Sun, 23 May 2010 09:37:23 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvsEAKbL+EtFpZMM/2dsb2JhbACeD3K8CYUTBIw/ X-IronPort-AV: E=Sophos;i="4.53,285,1272859200"; d="scan'208";a="64873110" Original-Received: from 69-165-147-12.dsl.teksavvy.com (HELO pastel.home) ([69.165.147.12]) by ironport2-out.pppoe.ca with ESMTP; 23 May 2010 09:37:22 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 533138266; Sun, 23 May 2010 09:37:22 -0400 (EDT) In-Reply-To: <87hblz1hxi.fsf@stupidchicken.com> (Chong Yidong's message of "Sat, 22 May 2010 22:16:25 -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:125116 Archived-At: >> PS: And yes, for interactive calls to delete-file, the `allow-trash' >> should be non-nil, I think. > Yeah, but omitted means nil. Hmm. We're talking interactive calls, so it doesn't have to be omitted. We can set its value to anything we want. > Here's an idea: allow the variable `delete-by-moving-to-trash' to be a > list of values of `this-command', for which to trash instead of delete. > Then we could set the default value of this list to be `delete-file', > `dired-do-flagged-delete', etc. I'd rather avoid relying on this-command. Stefan