in emacs 26, when deleting a directory, it now force user to type full “yes”/"no".
this is hardcoded in dired--yes-no-all-quit-help at dired.el
This is super annoying. Why's this change?
it used to be, the code calls yes-or-no-p, and user can alias it to y-or-n-p, so that typing y or n is enough.
It's so that you can answer "all" in response to it asking about recursive copies/deletes
oh great! didn't realize that. That answered my question.
though, i think it still isn't that good. When there's just 1 dir, it creates more typing. And i think half of the time, it's just 1 dir. (for those who set (setq dired-recursive-deletes 'top)
which is the default now.)
before, one can just hold y key to delete all. Also, often dired will also ask if user wants to delete the buffer of that dir. So, holding y will do. But now, some questions, you have to type yes or all, while other, you have to type y.
Wrt "user can alias it to y-or-n-p, so that typing y or n is enough", but somewhat OT for this specific: yes-no.el
.
work around. just set it to (setq dired-recursive-deletes 'always) so it stop asking all together.
i cannot think of 1 instance after all these years, that when dired asks for confirmation, i say oops, wait, i made a mistake.
using unix taught one to be sure, before hitting enter.
Famous last words.
:D have to up you a point.
Nice default for recursive deletes. Helps to set it apart from non-recursive deletes.
There are some half-baked solutions to this in Bug#28525.
22.4k
Subscribers
156
Online
The extensible, customizable, self-documenting real-time display editor.