]> git.eshelyaron.com Git - emacs.git/commitdiff
(Qdelete_by_moving_to_trash): New Lisp_Object.
authorGlenn Morris <rgm@gnu.org>
Sat, 20 Sep 2008 23:37:47 +0000 (23:37 +0000)
committerGlenn Morris <rgm@gnu.org>
Sat, 20 Sep 2008 23:37:47 +0000 (23:37 +0000)
(syms_of_fileio): Add Qdelete_by_moving_to_trash.

src/ChangeLog
src/fileio.c

index abea2c4a2dc5793a3eea1d4f1224e15c27140361..9e855a4898b30c76066ce02da7e1ed4edbe135d6 100644 (file)
@@ -5,7 +5,9 @@
 
 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>
index 6a9364d37bc542b3a1a5dd6e657f56d34c7715b7..cf3ec5bc44fa60944827a4d153a543a7dbeef63c 100644 (file)
@@ -201,6 +201,8 @@ int write_region_inhibit_fsync;
    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;
 
@@ -2246,7 +2248,7 @@ This is what happens in interactive use with M-x.  */)
                        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);
        }
@@ -5669,6 +5671,7 @@ A non-nil value may result in data loss!  */);
 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);