diff options
| author | Tino Calancha | 2017-08-06 13:46:51 +0900 |
|---|---|---|
| committer | Tino Calancha | 2017-08-06 13:46:51 +0900 |
| commit | cbea38e5c4af5386192fb9a48ef4fca5080d6561 (patch) | |
| tree | e27b535d8e51591be70045289240380d2be6d4d9 /doc | |
| parent | 785a4a1d52fd7da3f3169fda26841341667c1661 (diff) | |
| download | emacs-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.texi | 8 |
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 |
| 237 | delete nonempty directories including all their contents. That can | 237 | delete nonempty directories including all their contents. That can |
| 238 | be somewhat risky. | 238 | be somewhat risky. |
| 239 | Even if you have set @code{dired-recursive-deletes} to @code{nil}, | ||
| 240 | you might want sometimes to delete recursively directories | ||
| 241 | without being asked for confirmation for all of them. This is handy | ||
| 242 | when you have marked many directories for deletion and you are very | ||
| 243 | sure that all of them can safely being deleted. For every nonempty | ||
| 244 | directory you are asked for confirmation; if you answer @code{all}, | ||
| 245 | then all the remaining directories will be deleted without more | ||
| 246 | questions. | ||
| 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 |