emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: delete-file to trash


From: David Kastrup
Subject: Re: delete-file to trash
Date: Sun, 23 May 2010 07:00:20 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

Chong Yidong <address@hidden> writes:

> Stefan Monnier <address@hidden> 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]