From: Juri Linkov Date: Thu, 20 May 2010 23:08:52 +0000 (+0300) Subject: * fileio.c (Fdelete_file): Change interative spec to use X-Git-Tag: emacs-pretest-24.0.90~104^2~275^2~438^2~205^2~32 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=2e2bbddbf9ac76724f4799c7bf5bf7c056d73951;p=emacs.git * fileio.c (Fdelete_file): Change interative spec to use `read-file-name' like in `find-file-read-args' where the default value is `default-directory' instead of `buffer-file-name'. http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html --- diff --git a/src/ChangeLog b/src/ChangeLog index b593f5fe8dd..13ab4682df3 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,10 @@ +2010-05-20 Juri Linkov + + * fileio.c (Fdelete_file): Change interative spec to use + `read-file-name' like in `find-file-read-args' where the default + value is `default-directory' instead of `buffer-file-name'. + http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html + 2010-05-20 Kevin Ryde * keyboard.c (Vlast_command, Vkeyboard_translate_table) diff --git a/src/fileio.c b/src/fileio.c index 85685ebc9c4..de32bfecd34 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -2194,7 +2194,10 @@ DEFUN ("delete-directory-internal", Fdelete_directory_internal, return Qnil; } -DEFUN ("delete-file", Fdelete_file, Sdelete_file, 1, 2, "fDelete file: \nP", +DEFUN ("delete-file", Fdelete_file, Sdelete_file, 1, 2, + "(list (read-file-name \"Delete file: \" nil default-directory \ + (confirm-nonexistent-file-or-buffer)) \ + current-prefix-arg)", doc: /* Delete file named FILENAME. If it is a symlink, remove the symlink. If file has multiple names, it continues to exist with the other names.