From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#33336: 26; Document how to restore trashed files Date: Sun, 11 Nov 2018 17:28:37 +0200 Message-ID: <83o9avab16.fsf@gnu.org> References: <38efc245-0b99-483a-9f3a-01e89c822eca@default> <83tvkoaejz.fsf@gnu.org> <83pnvc9thl.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1541950028 3479 195.159.176.226 (11 Nov 2018 15:27:08 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 11 Nov 2018 15:27:08 +0000 (UTC) Cc: 33336@debbugs.gnu.org To: rgm@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Nov 11 16:27:04 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gLrde-0000gv-17 for geb-bug-gnu-emacs@m.gmane.org; Sun, 11 Nov 2018 16:27:02 +0100 Original-Received: from localhost ([::1]:42639 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gLrfk-0005Ip-Gm for geb-bug-gnu-emacs@m.gmane.org; Sun, 11 Nov 2018 10:29:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43595) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gLrfe-0005IZ-QF for bug-gnu-emacs@gnu.org; Sun, 11 Nov 2018 10:29:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gLrfb-00055K-31 for bug-gnu-emacs@gnu.org; Sun, 11 Nov 2018 10:29:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:42323) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gLrfa-000557-Jn for bug-gnu-emacs@gnu.org; Sun, 11 Nov 2018 10:29:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gLrfa-0000sT-9W for bug-gnu-emacs@gnu.org; Sun, 11 Nov 2018 10:29:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 11 Nov 2018 15:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 33336 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 33336-submit@debbugs.gnu.org id=B33336.15419501373362 (code B ref 33336); Sun, 11 Nov 2018 15:29:02 +0000 Original-Received: (at 33336) by debbugs.gnu.org; 11 Nov 2018 15:28:57 +0000 Original-Received: from localhost ([127.0.0.1]:46581 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gLrfV-0000sA-D4 for submit@debbugs.gnu.org; Sun, 11 Nov 2018 10:28:57 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:33888) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gLrfT-0000rw-BX for 33336@debbugs.gnu.org; Sun, 11 Nov 2018 10:28:55 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gLrfK-0004u6-Vm for 33336@debbugs.gnu.org; Sun, 11 Nov 2018 10:28:50 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:49085) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gLrfK-0004tw-RZ for 33336@debbugs.gnu.org; Sun, 11 Nov 2018 10:28:46 -0500 Original-Received: from [176.228.60.248] (port=1897 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1gLrfK-0007zL-CZ; Sun, 11 Nov 2018 10:28:46 -0500 In-reply-to: <83pnvc9thl.fsf@gnu.org> (message from Eli Zaretskii on Sun, 11 Nov 2018 05:35:18 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:152295 Archived-At: > Date: Sun, 11 Nov 2018 05:35:18 +0200 > From: Eli Zaretskii > Cc: 33336@debbugs.gnu.org > > > From: Glenn Morris > > Cc: Drew Adams , 33336@debbugs.gnu.org > > Date: Sat, 10 Nov 2018 16:26:07 -0500 > > > > Eli Zaretskii wrote: > > > > > This is a system facility, Emacs just uses it. Restoring files from > > > there is something specific to each system, and is not for Emacs to > > > provide or document. > > > > I don't see how moving something out of trash is different to moving it > > in this regard. > > Where trash is just another directory, you are right. But that's just > one variety. Actually, I take that back: even if trash is a directory that uses the freedesktop trash spec, undeleting a file via Dired is not entirely straightforward, for at least two reasons: . Dired is based on parsing the output of 'ls', and AFAIK GNU 'ls' isn't yet capable of displaying trash directories in useful, human-readable ways (we'd probably need to reuse/reinvent portions of ls-lisp?) . Trash directories routinely have several versions of the same file, and AFAIK Dired doesn't have capabilities for presenting several versions of the same file in a way that would facilitate the decision whether and which version to restore