On May 26, 12:19 pm, Richard Stallman <[EMAIL PROTECTED]> 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. _______________________________________________ gnu-emacs-sources mailing list [email protected] http://lists.gnu.org/mailman/listinfo/gnu-emacs-sources
