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 19:24:43 +0200 Message-ID: <83efbra5no.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 1541957049 8022 195.159.176.226 (11 Nov 2018 17:24:09 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 11 Nov 2018 17:24:09 +0000 (UTC) Cc: 33336@debbugs.gnu.org To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Nov 11 18:24:05 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 1gLtSu-0001xJ-KV for geb-bug-gnu-emacs@m.gmane.org; Sun, 11 Nov 2018 18:24:04 +0100 Original-Received: from localhost ([::1]:43143 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gLtV1-0002oW-1w for geb-bug-gnu-emacs@m.gmane.org; Sun, 11 Nov 2018 12:26:15 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40834) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gLtUv-0002oF-Ay for bug-gnu-emacs@gnu.org; Sun, 11 Nov 2018 12:26:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gLtUp-0003Vl-LQ for bug-gnu-emacs@gnu.org; Sun, 11 Nov 2018 12:26:09 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:42420) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gLtUo-0003VV-Mb for bug-gnu-emacs@gnu.org; Sun, 11 Nov 2018 12:26:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gLtUo-0007p5-Ig for bug-gnu-emacs@gnu.org; Sun, 11 Nov 2018 12:26: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 17:26: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.154195710529994 (code B ref 33336); Sun, 11 Nov 2018 17:26:02 +0000 Original-Received: (at 33336) by debbugs.gnu.org; 11 Nov 2018 17:25:05 +0000 Original-Received: from localhost ([127.0.0.1]:46678 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gLtTs-0007nh-GS for submit@debbugs.gnu.org; Sun, 11 Nov 2018 12:25:04 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:59273) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gLtTq-0007n5-DF for 33336@debbugs.gnu.org; Sun, 11 Nov 2018 12:25:02 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gLtTh-0002sv-8y for 33336@debbugs.gnu.org; Sun, 11 Nov 2018 12:24:57 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:51020) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gLtTh-0002sj-58; Sun, 11 Nov 2018 12:24:53 -0500 Original-Received: from [176.228.60.248] (port=1316 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1gLtTg-0003s6-Fe; Sun, 11 Nov 2018 12:24:53 -0500 In-reply-to: (message from Drew Adams on Sun, 11 Nov 2018 08:47:28 -0800 (PST)) 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:152306 Archived-At: > Date: Sun, 11 Nov 2018 08:47:28 -0800 (PST) > From: Drew Adams > Cc: drew.adams@oracle.com, 33336@debbugs.gnu.org > > But this would presumably require recording the original > directory, to where each file should be restored (by default). > And the "restoring" code would need to, e.g., prompt the user > for some alternative directory if the recorded directory no > longer existed. That's exactly what the freedesktop spec does, and the side effect is that the files in the trash don't have their original names. > The Emacs doc for this can make clear that Emacs may not > be able to help in some cases where the system trash bin > is used, and in such cases users should consult their > system doc for how to restore a file. I added there yesterday a sentence saying that restoring files from trash needs system-dependent tools. I don't think we need to do more.