From: "B. T. Raven" <ecinmn@alcisp.com>
To: help-gnu-emacs@gnu.org
Subject: Re: deleting directories.
Date: Tue, 17 Apr 2007 23:03:20 -0500 [thread overview]
Message-ID: <c7878$4625988e$49fa63b$12719@DIALUPUSA.NET> (raw)
In-Reply-To: <mailman.2189.1176866121.7795.help-gnu-emacs@gnu.org>
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
next parent reply other threads:[~2007-04-18 4:03 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.2189.1176866121.7795.help-gnu-emacs@gnu.org>
2007-04-18 4:03 ` B. T. Raven [this message]
2007-04-18 4:46 ` deleting directories Amy Templeton
2007-04-18 5:54 ` Livin Stephen Sharma
2007-04-18 5:55 ` Livin Stephen Sharma
2007-04-18 20:38 ` Karl Hegbloom
2007-04-18 3:10 Livin Stephen Sharma
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='c7878$4625988e$49fa63b$12719@DIALUPUSA.NET' \
--to=ecinmn@alcisp.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.