From: David De La Harpe Golden <david@harpegolden.net>
To: 1440@emacsbugs.donarmstrong.com
Subject: bug#1440: Concerning delete-by-moving-to-trash on free systems
Date: Fri, 28 Nov 2008 18:53:34 +0000 [thread overview]
Message-ID: <49303E2E.6080706@harpegolden.net> (raw)
In-Reply-To: <878wr5rvik.fsf@thinkpad.tsdh.de>
> Delete a directory foo which contains the files a and b recursively
> (from within dired). Then goto the trash-directory. Now foo, a and
> b are side by side.
Not 100% sure, but one guess: maybe dired is itself recursing into the
directory and deleting each file and then deleting the directory rather
than deleting the directory as one operation, thus causing the flattening.
> Now delete another file named a. This file is really deleted,
> because a already exists in trash. (Overwriting would be as bad as
> the current decision.)
Uh. Not that I'm a fan of the current builtin trashcan routine, but are
you sure that it is actually losing data?
The current emacs move-file-to-trash _should_ be generating alternative
in-trash names for files with clashing filenames with
find-backup-file-name , see function body.
Some GUI file managers may be treating the generated names as
"hidden" backup files due to the naming scheme - can you verify you
don't have "a.~1~" files in your ~/.Trash/ directory from the command
line? (My fd.o trashcan patch avoids using such filenames because turns
out several GUI file managers actually choke on them (see patch
commentary), btw, so if you've also adjusted your
unpatched-with-my-patch-emacs trash-directory to point to the sepcial
fd.o trashcan directory, then things will go, um, wronger.)
next prev parent reply other threads:[~2008-11-28 18:53 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-27 10:09 Concerning delete-by-moving-to-trash on free systems Tassilo Horn
2008-11-27 13:19 ` David De La Harpe Golden
2008-11-27 14:00 ` Tassilo Horn
2008-11-27 14:35 ` David De La Harpe Golden
2008-11-27 14:58 ` Tassilo Horn
2008-11-27 15:26 ` Juanma Barranquero
2008-11-27 16:20 ` Tassilo Horn
2008-11-28 18:53 ` David De La Harpe Golden [this message]
[not found] ` <mailman.1444.1227899418.26697.bug-gnu-emacs@gnu.org>
2008-11-28 21:58 ` bug#1440: " Tassilo Horn
2008-11-27 13:43 ` martin rudalics
-- strict thread matches above, loose matches on Subject: below --
2008-12-01 20:00 bug#1440: " David De La Harpe Golden
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=49303E2E.6080706@harpegolden.net \
--to=david@harpegolden.net \
--cc=1440@emacsbugs.donarmstrong.com \
/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.