From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#28792: 26.0.60; Deleting to a custom trash directory in Dired gives error Date: Thu, 12 Oct 2017 15:58:11 +0300 Message-ID: <831sm8mskc.fsf@gnu.org> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1507813169 30961 195.159.176.226 (12 Oct 2017 12:59:29 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 12 Oct 2017 12:59:29 +0000 (UTC) Cc: kaushal.modi@gmail.com, eggert@cs.ucla.edu, 28792@debbugs.gnu.org To: =?UTF-8?Q?G=C3=B6ktu=C4=9F?= Kayaalp Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Oct 12 14:59:23 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e2d4w-0005bQ-5E for geb-bug-gnu-emacs@m.gmane.org; Thu, 12 Oct 2017 14:59:10 +0200 Original-Received: from localhost ([::1]:45377 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e2d51-0006tE-N3 for geb-bug-gnu-emacs@m.gmane.org; Thu, 12 Oct 2017 08:59:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39750) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e2d4s-0006sF-Uv for bug-gnu-emacs@gnu.org; Thu, 12 Oct 2017 08:59:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e2d4o-0007fQ-TM for bug-gnu-emacs@gnu.org; Thu, 12 Oct 2017 08:59:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:54546) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e2d4o-0007eT-Op for bug-gnu-emacs@gnu.org; Thu, 12 Oct 2017 08:59:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1e2d4n-0006ds-QZ for bug-gnu-emacs@gnu.org; Thu, 12 Oct 2017 08:59:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 12 Oct 2017 12:59:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28792 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 28792-submit@debbugs.gnu.org id=B28792.150781311325492 (code B ref 28792); Thu, 12 Oct 2017 12:59:01 +0000 Original-Received: (at 28792) by debbugs.gnu.org; 12 Oct 2017 12:58:33 +0000 Original-Received: from localhost ([127.0.0.1]:34994 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e2d4K-0006d6-Ph for submit@debbugs.gnu.org; Thu, 12 Oct 2017 08:58:33 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:48523) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e2d4J-0006cu-Gh for 28792@debbugs.gnu.org; Thu, 12 Oct 2017 08:58:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e2d4A-00079J-7j for 28792@debbugs.gnu.org; Thu, 12 Oct 2017 08:58:26 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:42347) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e2d4A-000797-4i; Thu, 12 Oct 2017 08:58:22 -0400 Original-Received: from [176.228.60.248] (port=1881 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1e2d49-0007qU-K7; Thu, 12 Oct 2017 08:58:22 -0400 In-reply-to: (message from =?UTF-8?Q?G=C3=B6ktu=C4=9F?= Kayaalp on Thu, 12 Oct 2017 15:50:26 +0300) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:138269 Archived-At: > From: Göktuğ Kayaalp > Date: Thu, 12 Oct 2017 15:50:26 +0300 > Cc: Paul Eggert , 28792@debbugs.gnu.org > > Quite recently I've opened and retreated the similar bug#28791, trying > to trash directories recursively. I did not use a custom > trash-directory, but I got the same error. Turns out that it was > delete-by-moving-to-trash that provoked the error (with an indentical > message to yours). Emptying the ~/.local/share/Trash/ folder solved the > issue for me. I observed that in ~/.local/share/Trash/info/ some > .trashinfo files were created with the name of the directory (say > ) I was trying to delete, one .trashinfo and many > .trashinfo. This use case raises an interesting question: what should be the behavior of delete-by-moving-to-trash when the Trash directory already includes a directory by the same name as the non-directory file being deleted? Are files in the Trash directory generally unimportant enough to disregard these situations, or does this use case run afoul of the ability to restore the trashed files later? I don't know the answers, as I intentionally avoid using the system trash.