[Top][All Lists]

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

Re: delete-file to trash

From: Stefan Monnier
Subject: Re: delete-file to trash
Date: Sun, 23 May 2010 09:37:22 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

>> 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.


reply via email to

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