emacs-devel
[Top][All Lists]
Advanced

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

Re: delete-file default to buffer-file-name if non-nil


From: Davis Herring
Subject: Re: delete-file default to buffer-file-name if non-nil
Date: Sat, 15 May 2010 11:30:25 -0700 (PDT)
User-agent: SquirrelMail/1.4.8-5.el5_4.10.lanl1

> Could we change the behavior of delete-file so that it defaults to
> buffer-file-name if non-nil, otherwise the current directory, if
> called interactively?

Doesn't it already do that?  M-x delete-file RET does attempt to delete
the current buffer's file or its directory if it has no file.  Personally,
I find this default sort of dangerous, although at least C-x C-w often
fixes it.

Davis

-- 
This product is sold by volume, not by mass.  If it appears too dense or
too sparse, it is because mass-energy conversion has occurred during
shipping.



reply via email to

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