unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Leo <sdl.web@gmail.com>
To: emacs-devel@gnu.org
Subject: Re: delete-file to trash
Date: Sat, 22 May 2010 02:50:14 +0100	[thread overview]
Message-ID: <xbai4oi0d7s9.fsf@cam.ac.uk> (raw)
In-Reply-To: 83mxvtylwg.fsf@gnu.org

On 2010-05-21 22:39 +0100, Eli Zaretskii wrote:
> I think the whole idea is fundamentally flawed. Somebody got envious
> of the terrible MS invention and wanted to have it on Posix platforms.
> The implementation is not the culprit, it's the idea that is simply
> wrong. There's no chance in the world that we could ever have a good
> way of deciding programmatically when to move to trash and when not.
> Only a human can decide that.
>
> FWIW, when I work on Windows and happen to delete files from the
> Explorer, I always hold the Shift key.

On 2010-05-22 01:52 +0100, Stefan Monnier wrote:
> One of the first steps in my learning Unix was to learn how to
> add/change an alias in my shell to replace my syadmin's default alias
> of "rm" from "rm -i" to "rm -rf". Guess what: I never regretted it
> (tho I've gotten rid of this alias in the mean time, because my
> fingers learned to always type "rm -rf" anyway).
>
> And remember: I'm the guy who constantly commits changes that don't
> even compile, so it's not like I'm a careful user.

I think I force delete all the time too on both windows and GNU/Linux
because I don't want confirmation. But if emacs move things to trash
sensibly that actually is a nice feature.

> OT1H the trashcan "feature" is something that enough people think they
> want that we do want to support it. But OTOH I do think that people
> will end up seeing the light (think of when Gnome will keep all your
> files under a VCS as a matter of course), so I think "move-to-trash"
> is transient and will be replaced by some kind of "automatic commit".
> We don't have to worry about it yet, maybe, but we should think about
> how best to deal with "move-to-trash" within this context.
> 
>         Stefan "Always have a backup"

Leo




  parent reply	other threads:[~2010-05-22  1:50 UTC|newest]

Thread overview: 48+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-21 19:48 delete-file to trash Leo
2010-05-21 20:15 ` Tassilo Horn
2010-05-21 20:57   ` Leo
2010-05-21 21:12   ` Lennart Borgman
2010-05-21 21:32     ` Tassilo Horn
2010-05-21 21:44       ` Lennart Borgman
2010-05-21 21:58         ` Tassilo Horn
2010-05-21 22:13           ` Lennart Borgman
2010-05-21 23:14             ` Andreas Schwab
2010-05-22  5:36         ` Eli Zaretskii
2010-05-22 10:25           ` Lennart Borgman
2010-05-22  5:37       ` Eli Zaretskii
2010-05-22  9:17         ` Tassilo Horn
2010-05-21 21:39 ` Eli Zaretskii
2010-05-21 21:46   ` Lennart Borgman
2010-05-22  0:52   ` Stefan Monnier
2010-05-22  6:42     ` Adrian Robert
2010-05-22 13:03       ` Stefan Monnier
2010-05-22 19:37         ` Adrian Robert
2010-05-23  1:03           ` Stefan Monnier
2010-05-23 14:54           ` Harald Hanche-Olsen
2010-05-24 13:17             ` Stefan Monnier
2010-05-22  7:32     ` Stephen J. Turnbull
2010-05-22  1:00   ` Drew Adams
2010-05-22  1:50   ` Leo [this message]
2010-05-22  0:38 ` Stefan Monnier
2010-05-23  0:09   ` Chong Yidong
2010-05-23  0:27     ` David De La Harpe Golden
2010-05-23  1:06     ` Stefan Monnier
2010-05-23  2:16       ` Chong Yidong
2010-05-23  5:00         ` David Kastrup
2010-05-23  8:57         ` Leo
2010-05-23 13:37         ` Stefan Monnier
2010-05-23 23:20           ` Chong Yidong
2010-05-24 13:16             ` Stefan Monnier
2010-05-24 14:02               ` Leo
2010-05-27 23:36       ` Chong Yidong
2010-05-28 13:44         ` Michael Albinus
2010-05-28 17:29           ` Chong Yidong
2010-05-30 18:37         ` Juri Linkov
2010-05-23  8:20     ` Leo
2010-05-23 10:00       ` Lennart Borgman
2010-05-23 10:15         ` Leo
2010-05-23 11:12           ` Lennart Borgman
2010-05-23 12:14             ` Leo
2010-05-23 12:23               ` Lennart Borgman
2010-05-23 13:39         ` Stefan Monnier
2010-05-23 13:53           ` Lennart Borgman

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=xbai4oi0d7s9.fsf@cam.ac.uk \
    --to=sdl.web@gmail.com \
    --cc=emacs-devel@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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).