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

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

Re: deleting directories.


From: Livin Stephen Sharma
Subject: Re: deleting directories.
Date: Wed, 18 Apr 2007 11:25:33 +0530

This worked..
.. but I'm unfamiliar with dired, so I'll tread carefully with this for a while! J

 Thanks, Ed


On 18-Apr-07, at 09:33 , B. T. Raven wrote:

Livin Stephen Sharma wrote:
How can I delete a directory thru emacs
 (equivalent of "M-x delete-file")
regards
 livin.stephen
[This is GNU Emacs 22.0.97.1 (powerpc-apple-darwin7.9.0, Carbon Version 1.6.0)]


C-x d [parent directory of the one you want to delete]
S-< or S-> to move point to line where name of directory to delete is found
D
[If there are files in the directory you try to delete and if dired- recursive-delete is nil, then you will get an error. ] Safer than recursive deletion is deletion of the files in the directory before removal of the directory:

navigate to directory in dired with > or < or ^ and then type
m
d
[Confirm]
^
D
X
[Confirm]

All these single keystroke commands can also be invoked from the menubar in a dired buffer. Manybe you can also run rm from a shell but I just froze emacs up by trying M-! deltree junkdir. I don't quite understand why.

Ed


_______________________________________________
help-gnu-emacs mailing list
help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs





reply via email to

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