all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* remove to trashcan
@ 2009-08-25  8:37 Alain Muls
  0 siblings, 0 replies; 2+ messages in thread
From: Alain Muls @ 2009-08-25  8:37 UTC (permalink / raw)
  To: help-gnu-emacs

Hi emacs users

I installed trashcan.el and this works fine for deleteing files from 
dired, but deleting a directory (recursively) cannot be done. Is there a 
way around?

Tx/Alain
-- 
-----------------------------------------------------------------
Alain Muls                                   alain.muls@rma.ac.be
Royal Military Academy                              +32.2.7426340
Department CISS                                 srt +32.2.7426476
Renaissance Avenue 30, B1000 Brussels
-----------------------------------------------------------------




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

* Re: remove to trashcan
       [not found] <mailman.5293.1251189446.2239.help-gnu-emacs@gnu.org>
@ 2009-08-25 11:45 ` Xah Lee
  0 siblings, 0 replies; 2+ messages in thread
From: Xah Lee @ 2009-08-25 11:45 UTC (permalink / raw)
  To: help-gnu-emacs

On Aug 25, 1:37 am, Alain Muls <alain.m...@telenet.be> wrote:
> Hi emacs users
>
> I installed trashcan.el and this works fine for deleteing files from
> dired, but deleting a directory (recursively) cannot be done. Is there a
> way around?

to delete dir, you need to set a built-in var.

Q: How to delete or copy a entire directory

A: Type “Alt+x customize-variable” then “dired-recursive-deletes”,
then click on the Value Menu to make a choice. Then, click “Save for
Future Sessions”, then “Finish”. Do the same with variable “dired-
recursive-copies”.

;; allow dired to be able to delete or copy a whole dir.
(setq dired-recursive-copies (quote always))
(setq dired-recursive-deletes (quote top))
;; “always” means no asking.
;; “top” means ask once (top = top dir).
;; any other symbol means ask for each dir or subdir.

• File Management with Emacs
  http://xahlee.org/emacs/file_management.html

-----------------------------------

if you are running emacs 23, deleting trash is already part of it.

Deleting files in emacs can now be set so that they move to the OS's
trash.

; deleting files goes to OS's trash can
(setq delete-by-moving-to-trash t) ; “t” for true, “nil” for false

However, this feature has a few problems. When this is on, your system
trash will be filled with tens or hundreds of emacs temp files, such
as those “#autosave#” files, “backup~” files, “.emacs.desktop”,
“emacs00164”, “server”, etc. Also, when deleting a directory from
dired, your system trash will end up with each individual files,
instead of just a folder. If the folder has few hundred files, the
process will be super slow. This happens at least on Windows emacs.

• New Features in Emacs 23
  http://xahlee.org/emacs/emacs23_features.html

  Xah
∑ http://xahlee.org/^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-08-25 11:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.5293.1251189446.2239.help-gnu-emacs@gnu.org>
2009-08-25 11:45 ` remove to trashcan Xah Lee
2009-08-25  8:37 Alain Muls

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.