+2008-09-20 Glenn Morris <rgm@gnu.org>
+
+ * fileio.c (Frename_file): Avoid copying to trash if a rename involves
+ a delete. (Bug#964).
+
2008-09-20 Eli Zaretskii <eliz@gnu.org>
* keyboard.c (Fset_quit_char, Fset_input_meta_mode)
{
if (errno == EXDEV)
{
+ int count;
#ifdef S_IFLNK
symlink_target = Ffile_symlink_p (file);
if (! NILP (symlink_target))
NILP (ok_if_already_exists) ? Qnil : Qt,
Qt, Qt);
+ count = SPECPDL_INDEX ();
+ specbind (intern ("delete-by-moving-to-trash"), Qnil);
Fdelete_file (file);
+ unbind_to (count, Qnil);
}
else
report_file_error ("Renaming", list2 (file, newname));