GNU bug report logs -
#60460
30.0.50; [FR] avoid putting remote files to local trash
Previous Next
Reported by: Ruijie Yu <ruijie <at> netyu.xyz>
Date: Sun, 1 Jan 2023 08:36:02 UTC
Severity: normal
Merged with 60462
Found in version 30.0.50
Fixed in version 30.1
Done: Michael Albinus <michael.albinus <at> gmx.de>
Bug is archived. No further changes may be made.
Full log
Message #10 received at 60460 <at> debbugs.gnu.org (full text, mbox):
> In response to this, I want to propose a change to the logic under which
> trashing is performed rather than deletion. However, I am not sure
> which one of my following two ideas is more appropriate.
>
> 1. Allow the user to disable "moving to local trash" only for remote
> files....
> 2. Use a dedicated local trash directory for each remote, optionally
> behind a toggle.
(Caveat: I'm not knowledgeable about sending
files to trash.)
I would have thought that we already have a way
for users to customize which files and dirs get
sent to trash.
Now I see that option `delete-by-moving-to-trash'
is just a simple nil/t Boolean, as opposed to
being nil (for don't trash) and non-nil for the
possibility of filtering.
Not trashing remote files is just one kind of
filtering. And you say that you want to do that
in particular because some of your remote files
are large. Filtering out large files (local or
remote) is another possibility (logically not
the same as filtering out remote files).
Users could have any number of criteria they
want to use, to filter inclusion/exclusion of
files to move to trash.
Why not use a mechanism similar to what we use
with `recentf.el'? There, we have user option
`recentf-exclude'. That lets you use multiple
regexps and predicates to specify the files
you want to exclude from inclusion in the list
of recent files.
This bug report was last modified 2 years and 165 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.