[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#33336: 26; Document how to restore trashed files
From: |
Eli Zaretskii |
Subject: |
bug#33336: 26; Document how to restore trashed files |
Date: |
Sun, 11 Nov 2018 05:35:18 +0200 |
> From: Glenn Morris <rgm@gnu.org>
> Cc: Drew Adams <drew.adams@oracle.com>, 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.
> On GNU systems, the only relevant mechanism is the freedesktop trash
> spec that move-file-to-trash implements. It looks like it would be
> straightforward for someone who wanted to to write a
> move-file-from-trash that restores files according to the trashinfo
> file, and this could be hooked into dired.
This won't work on MS-Windows, where trash is a special directory, and
restoring files from there is a special operation, not just moving a
file.