A short tip today.
When you delete files and directories in Emacs 23 (say, with
of losing the files until the end of times (or at least until the
singularity), you can move them to the 'trashcan', by whatever name that rose
comes in your system, 'Trash' or 'Recycle Bin'…
To enable this, put the following in your
(setq delete-by-moving-to-trash t)There is one problem - a bug? I am using Ubuntu 9.04, which follows the Freedesktop Trash Spec; it moves delete file in
~/.local/share/Trash, together with some metadata, so it can restore the file to their original location. However, emacs follows some older convention, ie. to move the file to
~/.Trash, and without any metadata.
You can partially fix this by making
~/.Trash a symlink to
~/.local/share/Trash/files/, but of course that does not get you the