bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#38729: 26.1; dired-flag-file-deletion should just skip over .. and .


From: Trent W. Buck
Subject: bug#38729: 26.1; dired-flag-file-deletion should just skip over .. and .
Date: Tue, 24 Dec 2019 18:24:54 +1100

When you do this:

    emacs -Q -nw .
    C-n     # until you reach the ".." line
    d       # d runs the command dired-flag-file-deletion
    x       # x runs the command dired-do-flagged-delete

Then you get

    Cannot operate on ‘.’ or ‘..’

Which is entirely reasonable and obvious.

What just happened to me was I had sorted a directory by time,
scrolled past the first page of recent files, then did

    C-u 100000 d x

to delete all the remaining files.
And of course I got

    Cannot operate on ‘.’ or ‘..’

So then I had to find . and/or .. in the list and use u (dired-unmark)
before I could do x (dired-do-flagged-delete).
This was a minor annoyance.

Can you just make d (dired-do-flagged-delete) skip over the . and
.. lines, since you can never delete them?

Note that m (dired-mark) should remain as-is, since e.g. "m ! du -s RET"
works fine on . and .. special lines.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]