aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorTino Calancha2017-08-06 13:46:51 +0900
committerTino Calancha2017-08-06 13:46:51 +0900
commitcbea38e5c4af5386192fb9a48ef4fca5080d6561 (patch)
treee27b535d8e51591be70045289240380d2be6d4d9 /doc
parent785a4a1d52fd7da3f3169fda26841341667c1661 (diff)
downloademacs-cbea38e5c4af5386192fb9a48ef4fca5080d6561.tar.gz
emacs-cbea38e5c4af5386192fb9a48ef4fca5080d6561.zip
dired-do-delete: Allow to delete dirs recursively without prompts
* lisp/dired.el (dired-delete-file): Accept 2 additional answers: 'all', to delete all directories recursively and no prompt anymore. 'quit', to cancel directory deletions (Bug#27940). Show help message when user inputs 'help'. (dired-do-flagged-delete): Bind locally dired-recursive-deletes so that we can overwrite its global value. Wrapp the loop within a catch '--delete-cancel to catch when the user abort the directtry deletion. * doc/emacs/dired.texi (Dired Deletion): Update manual. * etc/NEWS (Changes in Specialized Modes and Packages in Emacs 26.1): Announce this change.
Diffstat (limited to 'doc')
-rw-r--r--doc/emacs/dired.texi8
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/emacs/dired.texi b/doc/emacs/dired.texi
index 150ac8427ab..c1cc2f8cf96 100644
--- a/doc/emacs/dired.texi
+++ b/doc/emacs/dired.texi
@@ -236,6 +236,14 @@ Dired cannot delete directories that are nonempty. If the variable
236@code{dired-recursive-deletes} is non-@code{nil}, then Dired can 236@code{dired-recursive-deletes} is non-@code{nil}, then Dired can
237delete nonempty directories including all their contents. That can 237delete nonempty directories including all their contents. That can
238be somewhat risky. 238be somewhat risky.
239Even if you have set @code{dired-recursive-deletes} to @code{nil},
240you might want sometimes to delete recursively directories
241without being asked for confirmation for all of them. This is handy
242when you have marked many directories for deletion and you are very
243sure that all of them can safely being deleted. For every nonempty
244directory you are asked for confirmation; if you answer @code{all},
245then all the remaining directories will be deleted without more
246questions.
239 247
240@vindex delete-by-moving-to-trash 248@vindex delete-by-moving-to-trash
241 If you change the variable @code{delete-by-moving-to-trash} to 249 If you change the variable @code{delete-by-moving-to-trash} to