From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jean Louis Newsgroups: gmane.emacs.bugs Subject: bug#44059: 28.0.50; Trash files cannot be deleted properly if delete-by-moving-to-trash is set Date: Mon, 26 Oct 2020 19:03:22 +0300 Organization: GNU.Support Message-ID: References: <874kmqlew9.fsf@gnus.org> <83lfg2p8os.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20973"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mutt/+ (1036f0e) (2020-10-18) Cc: 44059@debbugs.gnu.org, Lars Ingebrigtsen To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Oct 26 20:36:31 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kX8IA-0005MV-LS for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 26 Oct 2020 20:36:30 +0100 Original-Received: from localhost ([::1]:35472 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kX8I9-0006EI-Gd for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 26 Oct 2020 15:36:29 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58366) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kX8Bv-000786-5P for bug-gnu-emacs@gnu.org; Mon, 26 Oct 2020 15:30:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58122) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kX8Bu-0001O1-Rh for bug-gnu-emacs@gnu.org; Mon, 26 Oct 2020 15:30:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kX8Bu-0007vP-Ic for bug-gnu-emacs@gnu.org; Mon, 26 Oct 2020 15:30:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jean Louis Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 26 Oct 2020 19:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44059 X-GNU-PR-Package: emacs Original-Received: via spool by 44059-submit@debbugs.gnu.org id=B44059.160374059030425 (code B ref 44059); Mon, 26 Oct 2020 19:30:02 +0000 Original-Received: (at 44059) by debbugs.gnu.org; 26 Oct 2020 19:29:50 +0000 Original-Received: from localhost ([127.0.0.1]:41435 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kX8Bh-0007uf-Uc for submit@debbugs.gnu.org; Mon, 26 Oct 2020 15:29:50 -0400 Original-Received: from static.rcdrun.com ([95.85.24.50]:55523) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kX8Bg-0007uX-BV for 44059@debbugs.gnu.org; Mon, 26 Oct 2020 15:29:48 -0400 Original-Received: from localhost ([::ffff:197.157.0.60]) (AUTH: PLAIN admin, TLS: TLS1.2,256bits,ECDHE_RSA_AES_256_GCM_SHA384) by static.rcdrun.com with ESMTPSA id 00000000002A0B39.000000005F972392.000043AC; Mon, 26 Oct 2020 19:29:21 +0000 Content-Disposition: inline In-Reply-To: <83lfg2p8os.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:191635 Archived-At: * Eli Zaretskii [2020-10-19 17:55]: > > From: Lars Ingebrigtsen > > Date: Mon, 19 Oct 2020 11:54:30 +0200 > > Cc: 44059@debbugs.gnu.org > > > > And... there doesn't seem to be any commands in Emacs for emptying the > > trash can? Shouldn't there be? > > AFAIU, doing this for freedesktop-style trash isn't trivial. Actually it says that Emacs already does that: Hide Trash Directory: Value Menu Directory: /home/data1/protected/tmp/Trash/ State : SAVED and set. Directory for ‘move-file-to-trash’ to move files and directories to. Hide This directory is used only when the function ‘system-move-file-to-trash’ is not defined. Relative paths are interpreted relative to ‘default-directory’. If the value is nil, Emacs uses a freedesktop.org-style trashcan. So if I set the variable: delete-by-moving-to-trash and not set trash-directory it will use freedeskstop style. I did not verify, I just assume it. There is no big problem. If delete-by-moving-to-trash is set then Tramp says it was trashed, which is confusing.