Tassilo Horn writes: > I think my patch is valid but now I think I should just create a > separate function dired-buffers-for-cleanup and use that from > dired-clean-up-after-deletion (or just collect the buffers in that > function) and remove the SUBDIRS argument from dired-buffers-for-dir > as it changes its logic too drastically. > > I'll prepare a patch in that direction later. Here it is: