From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Johannes Weiner Newsgroups: gmane.emacs.devel Subject: Re: Why @#! is not Emacs using the Recycle bin on w32? Date: Fri, 29 Aug 2008 20:37:36 +0200 Message-ID: <87wshzpszz.fsf@skyscraper.fehenstaub.lan> References: <48B7288E.3040503@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1220035207 4045 80.91.229.12 (29 Aug 2008 18:40:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 29 Aug 2008 18:40:07 +0000 (UTC) Cc: Emacs Devel To: "Lennart Borgman \(gmail\)" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Aug 29 20:41:01 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KZ8tk-0005vS-Op for ged-emacs-devel@m.gmane.org; Fri, 29 Aug 2008 20:40:59 +0200 Original-Received: from localhost ([127.0.0.1]:41800 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KZ8sj-0004Qe-1a for ged-emacs-devel@m.gmane.org; Fri, 29 Aug 2008 14:39:37 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KZ8rR-00047D-4t for emacs-devel@gnu.org; Fri, 29 Aug 2008 14:38:17 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KZ8rP-000460-CQ for emacs-devel@gnu.org; Fri, 29 Aug 2008 14:38:16 -0400 Original-Received: from [199.232.76.173] (port=42743 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KZ8rP-00045r-4D for emacs-devel@gnu.org; Fri, 29 Aug 2008 14:38:15 -0400 Original-Received: from saeurebad.de ([85.214.36.134]:50345) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KZ8rO-0003gx-6g for emacs-devel@gnu.org; Fri, 29 Aug 2008 14:38:15 -0400 Original-Received: by saeurebad.de (Postfix, from userid 107) id 077A64A000A; Fri, 29 Aug 2008 20:37:52 +0200 (CEST) Original-Received: from localhost (217-68-166-87.dynamic.primacom.net [217.68.166.87]) by saeurebad.de (Postfix) with ESMTP id 7DE854A0008; Fri, 29 Aug 2008 20:37:50 +0200 (CEST) In-Reply-To: <48B7288E.3040503@gmail.com> (Lennart Borgman's message of "Fri, 29 Aug 2008 00:37:02 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.1.3 X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:103195 Archived-At: "Lennart Borgman (gmail)" writes: > I just deleted a file because I misunderstood dired. I needed that file > (of course). Do you see the paradoxon? > And then I found that dired did not make any backup and did not use > windows Recycle bin. It's called `delete' not `move to somewhere else'. > This behaviour does not make me trust for example GNU/Linux. I don't quite follow. > I would beleive this is a behaviour implemented after how things work > there. Is this correct? Does Emacs behave this way on GNU/Linus too? Yes. Would it be feasible to extend the documentation on this? I suspect that you don't use dired without ever looking at the documentation at all, so a note in the docstring (and info file) that explains that `delete' means `delete' would be enough to prevent this misunderstanding? Hannes diff --git a/doc/emacs/ChangeLog b/doc/emacs/ChangeLog index 834cdeb..8b885fb 100644 --- a/doc/emacs/ChangeLog +++ b/doc/emacs/ChangeLog @@ -1,3 +1,7 @@ +2008-08-29 Johannes Weiner + + * dired.texi: Add note about the permanent nature of file deletion. + 2008-08-27 Romain Francoise * custom.texi (Directory Variables): Minor fix. diff --git a/doc/emacs/dired.texi b/doc/emacs/dired.texi index 104c59f..9355df0 100644 --- a/doc/emacs/dired.texi +++ b/doc/emacs/dired.texi @@ -576,6 +576,10 @@ Like the other commands in this section, this command operates on the @emph{marked} files, or the next @var{n} files. By contrast, @kbd{x} (@code{dired-do-flagged-delete}) deletes all @dfn{flagged} files. +Note that deletion really means deletion here. The files will not be +moved to a trash directory and no backup will be made. Be sure of +what you do! + @findex dired-do-rename @kindex R @r{(Dired)} @cindex renaming files (in Dired) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 7376b83..e4a27b5 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2008-08-29 Johannes Weiner + + * dired.el (dired-do-delete): Add note about the permanent nature + of file deletion. + 2008-08-29 Eli Zaretskii * bindings.el (mode-line-frame-identification): Fix last change. diff --git a/lisp/dired.el b/lisp/dired.el index 3102a6d..1d36618 100644 --- a/lisp/dired.el +++ b/lisp/dired.el @@ -2538,7 +2538,7 @@ non-empty directories is allowed." (message "(No deletions requested)"))))) (defun dired-do-delete (&optional arg) - "Delete all marked (or next ARG) files. + "Permanently(!) delete all marked (or next ARG) files. `dired-recursive-deletes' controls whether deletion of non-empty directories is allowed." ;; This is more consistent with the file marking feature than