GNU bug report logs - #56511
29.0.50; Wishes: to use delete-by-moving-to-trash, but not with Tramp? or .dir-locals.el with Tramp

Previous Next

Package: emacs;

Reported by: Jean Louis <bugs <at> gnu.support>

Date: Tue, 12 Jul 2022 04:43:02 UTC

Severity: normal

Tags: notabug

Found in version 29.0.50

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Jean Louis <bugs <at> gnu.support>
Cc: 56511 <at> 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
Jean Louis <bugs <at> 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




This bug report was last modified 3 years and 9 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.