Use-case:
- Mark for deletion target files and directories at the dired buffer;
- Execute 'dired-do-flagged-delete' (type 'x');
Result: I'm asked about confirmation for every non-empty directory being removed.
Question: is there easy way to say 'yes' one time and get all of the marked stuff (including non-empty directories) removed?
I googled that it's possible to set 'dired-recursive-deletes' to 'always' but that doesn't protect me from accidental 'delete' processing (e.g. mistyped 'x' while wrong directory is marked).
I understand that it's possible to customize emacs via lisp injections but I don't know that language so far, that's the reason why I'm asking whether there is other solution.
x, you are prompted whether or not to delete all the marked files. With thetopsetting (default), you're prompted for each directory individually, and with thealwayssetting you're not prompted (other than the initial prompt). Are you asking for two prompts - the initial one, which lists everything, and a second prompt which only lists the directories? - Trey Jackson