From: Lars Ingebrigtsen <larsi@gnus.org>
To: Jean Louis <bugs@gnu.support>
Cc: 56511@debbugs.gnu.org
Subject: bug#56511: 29.0.50; Wishes: to use delete-by-moving-to-trash, but not with Tramp? or .dir-locals.el with Tramp
Date: Tue, 12 Jul 2022 15:05:14 +0200 [thread overview]
Message-ID: <87zghexz05.fsf@gnus.org> (raw)
In-Reply-To: <86zghf2qkc.fsf@protected.rcdrun.com> (Jean Louis's message of "Tue, 12 Jul 2022 02:10:59 +0300")
Jean Louis <bugs@gnu.support> writes:
> How to use the variable `delete-by-moving-to-trash', but not with
> Tramp?
As the doc string of move-file-to-trash says:
If the function `system-move-file-to-trash' is defined, call it
with FILENAME as an argument.
So just define a function that checks whether FILENAME is a Tramp file
name or not, and delete the file if it is, but trash otherwise.
So I don't think there's anything to be done here on the Emacs side, and
I'm closing this bug report.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
next prev parent reply other threads:[~2022-07-12 13:05 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-11 23:10 bug#56511: 29.0.50; Wishes: to use delete-by-moving-to-trash, but not with Tramp? or .dir-locals.el with Tramp Jean Louis
2022-07-12 13:05 ` Lars Ingebrigtsen [this message]
2022-07-12 14:13 ` 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=87zghexz05.fsf@gnus.org \
--to=larsi@gnus.org \
--cc=56511@debbugs.gnu.org \
--cc=bugs@gnu.support \
/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.