GNU bug report logs - #58721
28.2; dired with delete-by-moving-to-trash can't trash directory twice

Previous Next

Package: emacs;

Reported by: Gustavo Barros <gusbrs.2016 <at> gmail.com>

Date: Sat, 22 Oct 2022 18:24:01 UTC

Severity: normal

Found in version 28.2

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #11 received at 58721 <at> debbugs.gnu.org (full text, mbox):

From: Gustavo Barros <gusbrs.2016 <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 58721 <at> debbugs.gnu.org
Subject: Re: 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
Hi Eli,

On Thu, 27 Oct 2022 at 13:09, Eli Zaretskii <eliz <at> gnu.org> 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/<username>/.local/share/Trash/files/org-mode83g...")
  make-directory-internal("/home/<username>/.local/share/Trash/files/org-mode83g...")
  make-directory("/home/<username>/.local/share/Trash/files/org-mode83g..." nil)
  copy-directory("/home/<username>/path/to/file/org-mode"
"/home/<username>/.local/share/Trash/files/org-mode83g..." t nil)
  rename-file("/home/<username>/path/to/file/org-mode"
"/home/<username>/.local/share/Trash/files/org-mode83g..." t)
  move-file-to-trash("/home/<username>/path/to/file/org-mode")
  (progn (move-file-to-trash "/home/<username>/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.




This bug report was last modified 2 years and 182 days ago.

Previous Next


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