2008-09-20 Glenn Morris <rgm@gnu.org>
- * fileio.c (Frename_file): Avoid copying to trash if a rename involves
+ * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
+ (syms_of_fileio): Add Qdelete_by_moving_to_trash.
+ (Frename_file): Avoid copying to trash if a rename involves
a delete. (Bug#964).
2008-09-20 Eli Zaretskii <eliz@gnu.org>
Fdelete_directory. */
int delete_by_moving_to_trash;
+Lisp_Object Qdelete_by_moving_to_trash;
+
/* Lisp function for moving files to trash. */
Lisp_Object Qmove_file_to_trash;
Qt, Qt);
count = SPECPDL_INDEX ();
- specbind (intern ("delete-by-moving-to-trash"), Qnil);
+ specbind (Qdelete_by_moving_to_trash, Qnil);
Fdelete_file (file);
unbind_to (count, Qnil);
}
When non-nil, the function `move-file-to-trash' will be used by
`delete-file' and `delete-directory'. */);
delete_by_moving_to_trash = 0;
+ Qdelete_by_moving_to_trash = intern ("delete-by-moving-to-trash");
Qmove_file_to_trash = intern ("move-file-to-trash");
staticpro (&Qmove_file_to_trash);