emacs-devel
[Top][All Lists]
Advanced

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

Re: # in my waste basket


From: Stefan Monnier
Subject: Re: # in my waste basket
Date: Wed, 14 Oct 2009 09:18:03 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux)

> `delete-file' should make the decision based on whether it is
> called-interactively-p.  `dired-remove-file' can use
> `call-interactively' to pass that information to it.

But with call-interactively, it can't specify the file to delete.

Maybe a better way is to have 2 functions.  A low-level one (what used
to be `delete-file') that is not meant for interactive use and that is
a file operation, and a higher-level one for interactive use which is
not a file operation and which uses the Trash if applicable.


        Stefan




reply via email to

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