While considering some refactoring, I made changes throughout a project.
Halfway through the changes, and before saving, I found it doesn't quite work. I exited emacs and restarted. (That's probably not the right approach. There must be some kind of "ignore-all-changes-done-so-far" command I'm missing.)
Regardless, I now have many filename.ext
that are left with a trail of #filename.ext#
.
I recursively insert directories in dired-mode starting from the project root, and flag (%-d) all files of the regexp ^#.*#$
for deletion.
This expression only captures the files at the root of the hierarchy. Why, and how can I modify it to also catch all files inside the hierarchy?
Comparison
By way of comparison, marking (or flagging) all files of the pattern ^.*\.js$
does indeed catch all files, in both the root and in recursive directories. So why is ^#.*#$
not good?
diredp-mark-files-regexp-recursive
in the packagedired+
.