From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: delete-file to trash Date: Sun, 23 May 2010 07:00:20 +0200 Organization: Organization?!? Message-ID: <87k4qvkyaj.fsf@lola.goethe.zz> 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 1274590849 25639 80.91.229.12 (23 May 2010 05:00:49 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 23 May 2010 05:00:49 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun May 23 07:00:48 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 1OG3Ir-0004Qd-Dr for ged-emacs-devel@m.gmane.org; Sun, 23 May 2010 07:00:45 +0200 Original-Received: from localhost ([127.0.0.1]:42513 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OG3Iq-00039e-8U for ged-emacs-devel@m.gmane.org; Sun, 23 May 2010 01:00:44 -0400 Original-Received: from [140.186.70.92] (port=46457 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OG3If-00038S-6Z for emacs-devel@gnu.org; Sun, 23 May 2010 01:00:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OG3Id-0002kC-IT for emacs-devel@gnu.org; Sun, 23 May 2010 01:00:33 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:59829) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OG3Id-0002k7-AS for emacs-devel@gnu.org; Sun, 23 May 2010 01:00:31 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1OG3Ib-0004Kw-A0 for emacs-devel@gnu.org; Sun, 23 May 2010 07:00:29 +0200 Original-Received: from p5b2c3a01.dip.t-dialin.net ([91.44.58.1]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 23 May 2010 07:00:29 +0200 Original-Received: from dak by p5b2c3a01.dip.t-dialin.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 23 May 2010 07:00:29 +0200 X-Injected-Via-Gmane: http://gmane.org/ connect(): No such file or directory Original-Lines: 21 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: p5b2c3a01.dip.t-dialin.net X-Face: 2FEFf>]>q>2iw=B6, xrUubRI>pR&Ml9=ao@P@i)L:\urd*t9M~y1^:+Y]'C0~{mAl`oQuAl \!3KEIp?*w`|bL5qr,H)LFO6Q=qx~iH4DN; i"; /yuIsqbLLCh/!U#X[S~(5eZ41to5f%E@'ELIi$t^ Vc\LWP@J5p^rst0+('>Er0=^1{]M9!p?&:\z]|;&=NP3AhB!B_bi^]Pfkw User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:y9AytO/b73IeSn5RnSC0tOI3Rsk= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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:125098 Archived-At: Chong Yidong writes: > Stefan Monnier writes: > >> PS: And yes, for interactive calls to delete-file, the `allow-trash' >> should be non-nil, I think. > > Yeah, but omitted means nil. Hmm. If you pickup the arguments using &rest instead of &optional in the argument list, you can distinguish between omitted and nil args. Whether this is a good idea is another question. > 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. -- David Kastrup