From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#58721: 28.2; dired with delete-by-moving-to-trash can't trash directory twice Date: Thu, 27 Oct 2022 19:09:17 +0300 Message-ID: <83r0ytl042.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32655"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 58721@debbugs.gnu.org To: Gustavo Barros Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Oct 27 18:13:26 2022 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 1oo5VV-0008Kw-OW for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 27 Oct 2022 18:13:25 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oo5SF-0003iX-O4; Thu, 27 Oct 2022 12:10:03 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oo5SE-0003cn-76 for bug-gnu-emacs@gnu.org; Thu, 27 Oct 2022 12:10:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oo5SD-0004r6-Ub for bug-gnu-emacs@gnu.org; Thu, 27 Oct 2022 12:10:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oo5SD-0007dS-PK for bug-gnu-emacs@gnu.org; Thu, 27 Oct 2022 12:10: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, 27 Oct 2022 16:10:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58721 X-GNU-PR-Package: emacs Original-Received: via spool by 58721-submit@debbugs.gnu.org id=B58721.166688697429311 (code B ref 58721); Thu, 27 Oct 2022 16:10:01 +0000 Original-Received: (at 58721) by debbugs.gnu.org; 27 Oct 2022 16:09:34 +0000 Original-Received: from localhost ([127.0.0.1]:59054 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oo5Rl-0007cf-Ui for submit@debbugs.gnu.org; Thu, 27 Oct 2022 12:09:34 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:40848) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oo5Rk-0007cO-2z for 58721@debbugs.gnu.org; Thu, 27 Oct 2022 12:09:32 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oo5Re-0004mQ-SW; Thu, 27 Oct 2022 12:09:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=9w/BRfjdaKNAW/yBHnKIY4XnztM97ptnKy7E/RCRnbU=; b=ini5/SOegjSp 7lzmTDPwbYVgQw0nWXyS+hxwHEDRx3V8cNbkVrBYBK7XjbTrXEXTckGKGtXT4qpeGhDdk6IcaOy1p TMdJB2rSOlUzXOK76IY8UjKuHupSVt5K1yYrCG9TKbjIa9b5MKGhdeOA+9b8HFObqWbev4IX3fvg6 c0anmM5X89l42i1lP9BZ2s5QQoD+bzygUHvTWTp8Opp2F9CHkpGvFl0aUtqIjaGMf/M6CpJmvFYlA R7E3mNhqqfBZCUCE2zwcaTHRsG4nIqoTl6OhechMNHwePn8i7WfpTIRlJXmLy9jyGQa1IrQugQvJc x9Ctf3BKLdJC3RyNqRDk9A==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oo5Rc-0005xj-P2; Thu, 27 Oct 2022 12:09:25 -0400 In-Reply-To: (message from Gustavo Barros on Sat, 22 Oct 2022 15:23:15 -0300) 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: , Original-Sender: "bug-gnu-emacs" Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:246320 Archived-At: > From: Gustavo Barros > Date: Sat, 22 Oct 2022 15:23:15 -0300 > > If one enables `delete-by-moving-to-trash' and tries to delete a > directory with the same name twice from dired, dired won't let one do > so, resulting in "file-already-exists: File exists: " error > instead. > > Start with `emacs -Q'. Set: > > (setq delete-by-moving-to-trash t) > > Open dired at "/tmp/" (or some other place of your choosing). Clone > the org repository there with `M-& git clone > https://git.savannah.gnu.org/git/emacs/org-mode.git RET' (a comment on > why this below), refresh with `g', navigate to the corresponding > directory, and trash it with `D', confirm. The operation succeeds. > > Now, repeat it. Clone the repository and delete the directory again. I > get here "file-already-exists: File exists: > /home//.local/share/Trash/files/org-moderiQJ08", and the > directory is not trashed. > > Of course, this has nothing to do with Org. But I've tried to create > a simple file with `touch' or an empty directory with `mkdir' and the > issue does not arise then. And I haven't figured out what is the > difference in the `org-mode' directory which triggers the problem, it > just happens to be the last failing case of an issue which happens > occasionally here. Could you please set debug-on-error t, repeat the experiment, and post the Lisp backtrace from the error? Thanks.