diff options
| author | Glenn Morris | 2008-09-20 23:37:47 +0000 |
|---|---|---|
| committer | Glenn Morris | 2008-09-20 23:37:47 +0000 |
| commit | d2b66acf531883c8805683ce893e5dbf9ad50fc0 (patch) | |
| tree | a6eaa720b4698448586502446efad25d0118565f /src/fileio.c | |
| parent | 11041c992f7bb7c82c609fc244caa5e0aaa19729 (diff) | |
| download | emacs-d2b66acf531883c8805683ce893e5dbf9ad50fc0.tar.gz emacs-d2b66acf531883c8805683ce893e5dbf9ad50fc0.zip | |
(Qdelete_by_moving_to_trash): New Lisp_Object.
(syms_of_fileio): Add Qdelete_by_moving_to_trash.
Diffstat (limited to 'src/fileio.c')
| -rw-r--r-- | src/fileio.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/fileio.c b/src/fileio.c index 6a9364d37bc..cf3ec5bc44f 100644 --- a/src/fileio.c +++ b/src/fileio.c | |||
| @@ -201,6 +201,8 @@ int write_region_inhibit_fsync; | |||
| 201 | Fdelete_directory. */ | 201 | Fdelete_directory. */ |
| 202 | int delete_by_moving_to_trash; | 202 | int delete_by_moving_to_trash; |
| 203 | 203 | ||
| 204 | Lisp_Object Qdelete_by_moving_to_trash; | ||
| 205 | |||
| 204 | /* Lisp function for moving files to trash. */ | 206 | /* Lisp function for moving files to trash. */ |
| 205 | Lisp_Object Qmove_file_to_trash; | 207 | Lisp_Object Qmove_file_to_trash; |
| 206 | 208 | ||
| @@ -2246,7 +2248,7 @@ This is what happens in interactive use with M-x. */) | |||
| 2246 | Qt, Qt); | 2248 | Qt, Qt); |
| 2247 | 2249 | ||
| 2248 | count = SPECPDL_INDEX (); | 2250 | count = SPECPDL_INDEX (); |
| 2249 | specbind (intern ("delete-by-moving-to-trash"), Qnil); | 2251 | specbind (Qdelete_by_moving_to_trash, Qnil); |
| 2250 | Fdelete_file (file); | 2252 | Fdelete_file (file); |
| 2251 | unbind_to (count, Qnil); | 2253 | unbind_to (count, Qnil); |
| 2252 | } | 2254 | } |
| @@ -5669,6 +5671,7 @@ A non-nil value may result in data loss! */); | |||
| 5669 | When non-nil, the function `move-file-to-trash' will be used by | 5671 | When non-nil, the function `move-file-to-trash' will be used by |
| 5670 | `delete-file' and `delete-directory'. */); | 5672 | `delete-file' and `delete-directory'. */); |
| 5671 | delete_by_moving_to_trash = 0; | 5673 | delete_by_moving_to_trash = 0; |
| 5674 | Qdelete_by_moving_to_trash = intern ("delete-by-moving-to-trash"); | ||
| 5672 | Qmove_file_to_trash = intern ("move-file-to-trash"); | 5675 | Qmove_file_to_trash = intern ("move-file-to-trash"); |
| 5673 | staticpro (&Qmove_file_to_trash); | 5676 | staticpro (&Qmove_file_to_trash); |
| 5674 | 5677 | ||