help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[emacs] problem in `delete-directory' with enabled `delete-by-removing-


From: Andrey Torba
Subject: [emacs] problem in `delete-directory' with enabled `delete-by-removing-to-trash'
Date: Sat, 3 Apr 2010 17:02:50 +0300

Hi All,
There is a strange behavior of `delete-directory' function with
enabled flag `delete-by-removing-to-trash'. It deletes files one by
one instead of applying `move-file-to-trash' to the directory? As a
result emacs deletes big directories slowly and after deleting there
are many files in the trash directory, so it is impossible to restore.

Directory structure:
ddd/
   ccc/
       1.txt

There are three files in the trash after deleting `ddd' instead of
one:
ddd/
ccc/
1.txt

How to solve the problem? As a solution i see making advice function
for `delete-directory'.


--
Regards, Andrey

reply via email to

[Prev in Thread] Current Thread [Next in Thread]