|
Re: Recoverable File Deletion System: msg#00036emacs.sources
On May 26, 12:19 pm, Richard Stallman <r...@xxxxxxx> wrote: > Yes. It uses the command "rm -r" to delete directories, so the rm > command must exist on your operating system. > > That is ok by me, but if dired-delete-file works, please use that. Thanks to someone's helpful advice I found out that Emacs can delete non-empty directories. The feature is just turned off by default. Setting dired-recursive-deletes to non-nil makes it work. Therefore the "rm" command is no longer needed. This is good because some Emacs users might not have the "rm" command in their operating system. However my system redefines the dired.el function dired-internal-do- deletions. I believe it is simpler to redefine this function rather than dired-delete-file (which you suggested). I notice that dired- internal-do-deletions internally calls dired-delete-file. |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Recoverable File Deletion System: 00036, Davin Pearson |
|---|---|
| Next by Date: | Re: Recoverable File Deletion System: 00036, Galen Boyer |
| Previous by Thread: | Re: Recoverable File Deletion Systemi: 00036, Richard Stallman |
| Next by Thread: | Re: Recoverable File Deletion System: 00036, Galen Boyer |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |