aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMichael Albinus2010-05-28 16:57:11 +0200
committerMichael Albinus2010-05-28 16:57:11 +0200
commitf5783df3a76e578791965f852b9190235507556c (patch)
tree71ba696fa55b00481b40b48fa9136f8f56ef5aec /src
parentb6827fff7a48f14e7d3870c74f14ecd17ca750d1 (diff)
downloademacs-f5783df3a76e578791965f852b9190235507556c.tar.gz
emacs-f5783df3a76e578791965f852b9190235507556c.zip
* fileio.c (Fdelete_file): Pass TRASH arg to handler call.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog4
-rw-r--r--src/fileio.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index eeee6540e68..18e0aab2a6d 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,7 @@
12010-05-28 Michael Albinus <michael.albinus@gmx.de>
2
3 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
4
12010-05-28 Kenichi Handa <handa@m17n.org> 52010-05-28 Kenichi Handa <handa@m17n.org>
2 6
3 * font.c (font_delete_unmatched): Check Vface_ignored_fonts. 7 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
diff --git a/src/fileio.c b/src/fileio.c
index d3aea0f1e91..dc5ca37ff2f 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -1925,7 +1925,7 @@ A prefix arg makes KEEP-TIME non-nil.
1925If PRESERVE-UID-GID is non-nil, we try to transfer the 1925If PRESERVE-UID-GID is non-nil, we try to transfer the
1926uid and gid of FILE to NEWNAME. 1926uid and gid of FILE to NEWNAME.
1927 1927
1928If PRESERVE-SELINUX-CONTEXT is non-nil and SELinux is enabled 1928If PRESERVE-SELINUX-CONTEXT is non-nil and SELinux is enabled
1929on the system, we copy the SELinux context of FILE to NEWNAME. */) 1929on the system, we copy the SELinux context of FILE to NEWNAME. */)
1930 (file, newname, ok_if_already_exists, keep_time, preserve_uid_gid, preserve_selinux_context) 1930 (file, newname, ok_if_already_exists, keep_time, preserve_uid_gid, preserve_selinux_context)
1931 Lisp_Object file, newname, ok_if_already_exists, keep_time; 1931 Lisp_Object file, newname, ok_if_already_exists, keep_time;
@@ -2221,7 +2221,7 @@ With a prefix argument, TRASH is nil. */)
2221 2221
2222 handler = Ffind_file_name_handler (filename, Qdelete_file); 2222 handler = Ffind_file_name_handler (filename, Qdelete_file);
2223 if (!NILP (handler)) 2223 if (!NILP (handler))
2224 return call2 (handler, Qdelete_file, filename); 2224 return call3 (handler, Qdelete_file, filename, trash);
2225 2225
2226 if (delete_by_moving_to_trash && !NILP (trash)) 2226 if (delete_by_moving_to_trash && !NILP (trash))
2227 return call1 (Qmove_file_to_trash, filename); 2227 return call1 (Qmove_file_to_trash, filename);