From: Drew Adams <drew.adams@oracle.com>
To: Ruijie Yu <ruijie@netyu.xyz>
Cc: "60460@debbugs.gnu.org" <60460@debbugs.gnu.org>
Subject: bug#60460: 30.0.50; [FR] avoid putting remote files to local trash
Date: Sun, 1 Jan 2023 18:20:22 +0000 [thread overview]
Message-ID: <CO6PR10MB5473CBCBA7B8EF52B2540E32F3F69@CO6PR10MB5473.namprd10.prod.outlook.com> (raw)
In-Reply-To: <sdvmt726v9j.fsf@fw.net.yu>
> Similar to what we have for "recentf.el" today, we can have two
> variables `delete-by-moving-to-trash-include' and
> `delete-by-moving-to-trash-exclude',
That's not similar to `recentf'. There's no reason to
have options for both include and exclude. It's enough
to specify what to exclude (that's what `recentf' does).
> and make `delete-by-moving-to-trash' a deprecated alias
> to `delete-by-moving-to-trash-include'.
I see no need for that. We can just change the option's
non-nil value (meaning trash something) to be either:
1. A nonempty list of regexps & predicates (like
`recentf-exclude'), saying what not to trash.
2. Any other non-nil value, meaning exclude nothing,
i.e., trash everything.
#1 has to be nonempty, as nil means the opposite:
don't move anything to trash.
Alternatively, the option name could be changed, and
a nil (empty-list) value could mean move _everything_
to trash and `t' could mean move nothing to trash.
I don't think it's worth doing that. I'd suggest
not renaming and just making the change I suggested.
That's backward-compatible: nil still means don't
trash, and non-nil always means trash (something,
maybe everything).
next prev parent reply other threads:[~2023-01-01 18:20 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-31 16:34 bug#60460: 30.0.50; [FR] avoid putting remote files to local trash Ruijie Yu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-01-01 16:41 ` Drew Adams
2023-01-01 16:47 ` Ruijie Yu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-01-01 18:20 ` Drew Adams [this message]
2023-01-02 3:40 ` Jean Louis
2023-01-02 9:09 ` Michael Albinus
2023-01-02 10:35 ` Jean Louis
2023-01-02 10:47 ` Michael Albinus
2023-01-02 16:28 ` Jean Louis
2023-01-02 18:30 ` Michael Albinus
2023-01-02 20:37 ` Jean Louis
2023-01-03 8:47 ` Michael Albinus
2023-01-03 13:53 ` Jean Louis
2023-01-07 3:53 ` Ruijie Yu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-01-07 12:48 ` Michael Albinus
2023-01-08 0:37 ` Jean Louis
2023-01-08 9:20 ` Michael Albinus
2023-01-08 18:29 ` Michael Albinus
2023-02-02 8:56 ` Michael Albinus
-- strict thread matches above, loose matches on Subject: below --
2023-01-01 14:20 bug#60462: " Ruijie Yu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-12-31 21:46 ` Ruijie Yu via Bug reports for GNU Emacs, the Swiss army knife of text editors
[not found] ` <handler.60462.D60462.16726054692608.notifdone@debbugs.gnu.org>
2023-01-02 9:16 ` bug#60460: " Michael Albinus
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CO6PR10MB5473CBCBA7B8EF52B2540E32F3F69@CO6PR10MB5473.namprd10.prod.outlook.com \
--to=drew.adams@oracle.com \
--cc=60460@debbugs.gnu.org \
--cc=ruijie@netyu.xyz \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.