From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gustavo Barros 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 14:07:21 -0300 Message-ID: References: <83r0ytl042.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32509"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 58721@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Oct 27 19:09:35 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 1oo6Nr-0008GX-6E for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 27 Oct 2022 19:09:35 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oo6MO-0002xp-8V; Thu, 27 Oct 2022 13:08:04 -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 1oo6MN-0002kt-AA for bug-gnu-emacs@gnu.org; Thu, 27 Oct 2022 13:08:03 -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 1oo6MN-0005Yu-1h for bug-gnu-emacs@gnu.org; Thu, 27 Oct 2022 13:08:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oo6MM-0002wj-FZ for bug-gnu-emacs@gnu.org; Thu, 27 Oct 2022 13:08:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Gustavo Barros Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 27 Oct 2022 17:08:02 +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.166689046111294 (code B ref 58721); Thu, 27 Oct 2022 17:08:02 +0000 Original-Received: (at 58721) by debbugs.gnu.org; 27 Oct 2022 17:07:41 +0000 Original-Received: from localhost ([127.0.0.1]:59175 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oo6M0-0002w5-Sc for submit@debbugs.gnu.org; Thu, 27 Oct 2022 13:07:41 -0400 Original-Received: from mail-pg1-f179.google.com ([209.85.215.179]:38702) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oo6Ly-0002vq-RA for 58721@debbugs.gnu.org; Thu, 27 Oct 2022 13:07:39 -0400 Original-Received: by mail-pg1-f179.google.com with SMTP id 20so2107940pgc.5 for <58721@debbugs.gnu.org>; Thu, 27 Oct 2022 10:07:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=wYsH7eL/jyB++nu3q5pMGnx92tHBGhQlNL5j2qM0guU=; b=aDyPO7Adb8/EQgJr93qzr4JwmHsy95Evq6iNMZ9F1Gg1SQtcCviaabHjPZkw8HOln5 NZbAF0zXf5DOzSalQW7I1mZcOkq9Lx4ATBcVasG8ZVdcpoW+s07zRJ17RcGFmCf1uUaX F6exxJc18TMSXSDBW8XdGs+ZUjkkoKWCniPpWrjzSYylSl0MDEn7K+wall0CS38noDRA pfKU052635ctwohSa3XvPMK9jDJL5F4av9ba4x4Cjmuwe+XZYQh1tE7WV58YmPAfEq8A /XPUWdS9GVe7Q03iLfHo7qIeS6NNje0HD6avIVymD5Bb1SlHjpV2aBEnuz5cqTKVmLzJ hOSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=wYsH7eL/jyB++nu3q5pMGnx92tHBGhQlNL5j2qM0guU=; b=hzi7FMSQUuwSuzMOyZC2lFDX/OLuUqC7D3Xg+0UAmQ0Y6NZ/b3BjA/0xlVT4MZL8Gc 8SXe/4Z30zEC169qfHum/q4OUyuHgIWbu3tLLNz+sUOU1GqwZLngfB9S3e9iXvMaZll+ 2q9ngb0UTFPPfK7W/Id9gsCSEqssPaB1skyCAMFribbkvd1x+8hFSbJ6wCp61Z6wRuRL tzEcOIvzHZG312p1CgMjS+hZ/UTrTr0OoiZMRgKWi4Zfcf5544/SoInm5SSgN+j7EBDZ IFhmSSp4mHnOiFCiz0I0Od4pIYuhRDVjJi9LNt/Ik+L1G6tH+7FGRFcic7iAGY7q/iVG vDLg== X-Gm-Message-State: ACrzQf0lcAiJe+T4qneg0Ynw6baXiC2G/UhjZRvl8YjRXpryYvdZdEpe yAWKtBkTUGmh2mtdx2lvA53+CCU7+5L3Cef2jQgbSec8fOo7Ag== X-Google-Smtp-Source: AMsMyM46orLd9Zzbvorhe4dAIqjzYTTrIlmh/gsyPUA+BM/EtR7w5YfnBCokhnfA/Y+ytXLqt+7ZlSiRv09Ib82lz8Q= X-Received: by 2002:a65:6951:0:b0:42b:b13:b253 with SMTP id w17-20020a656951000000b0042b0b13b253mr44134998pgq.555.1666890452869; Thu, 27 Oct 2022 10:07:32 -0700 (PDT) In-Reply-To: <83r0ytl042.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: , 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:246337 Archived-At: Hi Eli, On Thu, 27 Oct 2022 at 13:09, Eli Zaretskii wrote: Thanks for looking into this. > Could you please set debug-on-error t, repeat the experiment, and post > the Lisp backtrace from the error? I take this means you can't reproduce? Anyway, of course I can send the backtrace. For some reason I don't understand, even though I get the message as described in the original recipe, it did not generate a backtrace (some error control somewhere?). I could generate a backtrace with: (setq debug-on-error t) (setq delete-by-moving-to-trash t) (move-file-to-trash "/path/to/org-mode") And it is (slightly edited, since it contained more info than I'd like to share): Debugger entered--Lisp error: (file-already-exists "File exists" "/home//.local/share/Trash/files/org-mode83g...") make-directory-internal("/home//.local/share/Trash/files/org-mode83g...") make-directory("/home//.local/share/Trash/files/org-mode83g..." nil) copy-directory("/home//path/to/file/org-mode" "/home//.local/share/Trash/files/org-mode83g..." t nil) rename-file("/home//path/to/file/org-mode" "/home//.local/share/Trash/files/org-mode83g..." t) move-file-to-trash("/home//path/to/file/org-mode") (progn (move-file-to-trash "/home//path/to/file/org-mode")) elisp--eval-last-sexp(nil) eval-last-sexp(nil) funcall-interactively(eval-last-sexp nil) command-execute(eval-last-sexp) Best regards, Gustavo.