all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* deleting directories.
@ 2007-04-18  3:10 Livin Stephen Sharma
  0 siblings, 0 replies; 6+ messages in thread
From: Livin Stephen Sharma @ 2007-04-18  3:10 UTC (permalink / raw)
  To: emacs-help gnu

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)]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: deleting directories.
       [not found] <mailman.2189.1176866121.7795.help-gnu-emacs@gnu.org>
@ 2007-04-18  4:03 ` B. T. Raven
  2007-04-18  4:46   ` Amy Templeton
  2007-04-18  5:55   ` Livin Stephen Sharma
  0 siblings, 2 replies; 6+ messages in thread
From: B. T. Raven @ 2007-04-18  4:03 UTC (permalink / raw)
  To: help-gnu-emacs

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: deleting directories.
  2007-04-18  4:03 ` B. T. Raven
@ 2007-04-18  4:46   ` Amy Templeton
  2007-04-18  5:54     ` Livin Stephen Sharma
  2007-04-18  5:55   ` Livin Stephen Sharma
  1 sibling, 1 reply; 6+ messages in thread
From: Amy Templeton @ 2007-04-18  4:46 UTC (permalink / raw)
  To: help-gnu-emacs

Livin Stephen Sharma wrote:
> How can I delete a directory thru emacs
>  (equivalent of "M-x delete-file")

I know that in my Emacs setup (22.0.97.2), there is a
delete-directory command which can be invoked via M-x.

Amy

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: deleting directories.
  2007-04-18  4:46   ` Amy Templeton
@ 2007-04-18  5:54     ` Livin Stephen Sharma
  0 siblings, 0 replies; 6+ messages in thread
From: Livin Stephen Sharma @ 2007-04-18  5:54 UTC (permalink / raw)
  To: emacs-help gnu gnu


On 18-Apr-07, at 10:16 , Amy Templeton wrote:

> Livin Stephen Sharma wrote:
>> How can I delete a directory thru emacs
>>  (equivalent of "M-x delete-file")
>
> I know that in my Emacs setup (22.0.97.2), there is a
> delete-directory command which can be invoked via M-x.

So there is!!
  I hadn't checked since moving to this build.

Thanks
  Amy

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: deleting directories.
  2007-04-18  4:03 ` B. T. Raven
  2007-04-18  4:46   ` Amy Templeton
@ 2007-04-18  5:55   ` Livin Stephen Sharma
  2007-04-18 20:38     ` Karl Hegbloom
  1 sibling, 1 reply; 6+ messages in thread
From: Livin Stephen Sharma @ 2007-04-18  5:55 UTC (permalink / raw)
  To: emacs-help gnu gnu

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: deleting directories.
  2007-04-18  5:55   ` Livin Stephen Sharma
@ 2007-04-18 20:38     ` Karl Hegbloom
  0 siblings, 0 replies; 6+ messages in thread
From: Karl Hegbloom @ 2007-04-18 20:38 UTC (permalink / raw)
  To: Livin Stephen Sharma; +Cc: emacs-help gnu gnu

I don't trust recursive delete by anything but "rm -rf" because once a
bug in the XEmacs dired burned me really bad.  Recursive delete was
implement entirely in Emacs Lisp, and it followed symlinks instead of
removing the symlink itself.  It escaped the tree I was removing and...

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2007-04-18 20:38 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-18  3:10 deleting directories Livin Stephen Sharma
     [not found] <mailman.2189.1176866121.7795.help-gnu-emacs@gnu.org>
2007-04-18  4:03 ` B. T. Raven
2007-04-18  4:46   ` 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

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.