Subject: bug#1440 closed by Chong Yidong <[email-masked]> (Re: bug#1440: Concerning delete-by-moving-to-trash on free systems)

From: [email-masked] (Emacs bug Tracking System)
Date: Sun, 28 Dec 2008 03:25:05 +0000

This is an automatic notification regarding your bug report
which was filed against the emacs package:

#1440: 23.0.60; delete-by-moving-to-trash loses data

It has been closed by Chong Yidong <[email-masked]>.

Their explanation is attached below along with your original report.
If this explanation is unsatisfactory and you have not received a
better one in a separate message then please contact Chong Yidong <[email-masked]> by
replying to this email.

-- 
1440: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=1440
Emacs Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#1440: Concerning delete-by-moving-to-trash on free systems
From: Chong Yidong <[email-masked]>
To: Tassilo Horn <[email-masked]>
Cc: David De La Harpe Golden <[email-masked]>, [email-masked]
Date: Sat, 27 Dec 2008 22:19:52 -0500

> > I'd propose to let-unbind backup-directory-alist when making backups
> > for deleted files.
>
> That seems sensible/necessary.

Done.

David's patch in bug#973, which implements the Freedesktop trash can,
looks good... but I think we should wait till after the release to
include it.

>From [email-masked] Thu Nov 27 07:44:20 2008
From: Tassilo Horn <[email-masked]>
To: [email-masked]
Subject: 23.0.60; delete-by-moving-to-trash loses data
Mail-Copies-To: never
Severity: grave
Date: Thu, 27 Nov 2008 16:44:09 +0100

Severity: grave

Please write in English if possible, because the Emacs maintainers
usually do not have translators to read other languages for them.

Your bug report will be posted to the [email-masked] mailing lis=
t.

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:

I've just found out about delete-by-moving-to-trash, and basically it
sounds nice, but it's dangerous.  The current implementation has one
minor and one HUGE drawback.

  - Delete a directory foo which contains the files a and b recursively
    (from within dired).  Then goto the trash-directory.  Now foo, a and
    b are side by side.

  - Now delete another file named a.  This file is really deleted,
    because a already exists in trash.  (Overwriting would be as bad as
    the current decision.)

In Bug #973 David De La Harpe Golden added a patch to implement the
freedesktop.org trashcan spec, which solves both problems and integrates
emacs much better into the modern GNU desktop.

He implemented only the writing part, so currently one has to use some
desktop file manager to restore files properly, but as long as no data
is lost, I wouldn't consiter that a problem.

If Emacs crashed, and you have the Emacs process in the gdb debugger,
please include the output from the following gdb commands:
    `bt full' and `xbacktrace'.
If you would like to further debug the crash, please read the file
/usr/share/emacs/23.0.60/etc/DEBUG for instructions.

In GNU Emacs 23.0.60.1 (x86_64-pc-linux-gnu, GTK+ Version 2.14.4)
 of 2008-11-25 on thinkpad
Windowing system distributor `The X.Org Foundation', version 11.0.10502000
configured using `configure  '--prefix=3D/usr' '--host=3Dx86_64-pc-linux-gn=
u' '--mandir=3D/usr/share/man' '--infodir=3D/usr/share/info' '--datadir=3D/=
usr/share' '--sysconfdir=3D/etc' '--localstatedir=3D/var/lib' '--libdir=3D/=
usr/lib64' '--program-suffix=3D-emacs-23' '--infodir=3D/usr/share/info/emac=
s-23' '--with-sound' '--with-x' '--with-toolkit-scroll-bars' '--with-gif' '=
--with-jpeg' '--with-png' '--with-rsvg' '--with-tiff' '--with-xpm' '--with-=
freetype' '--with-xft' '--with-libotf' '--with-m17n-flt' '--with-x-toolkit=
=3Dgtk' '--without-hesiod' '--without-kerberos' '--without-kerberos5' '--wi=
th-gpm' '--with-dbus' '--build=3Dx86_64-pc-linux-gnu' 'build_alias=3Dx86_64=
-pc-linux-gnu' 'host_alias=3Dx86_64-pc-linux-gnu' 'CFLAGS=3D-g -ggdb -O1 -p=
ipe' 'LDFLAGS=3D''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: en_US.UTF-8
  value of $XMODIFIERS: nil
  locale-coding-system: utf-8-unix
  default-enable-multibyte-characters: t

Major mode: Article

Minor modes in effect:
  rcirc-track-minor-mode: t
  yas/minor-mode: t
  shell-dirtrack-mode: t
  recentf-mode: t
  iswitchb-mode: t
  window-number-meta-mode: t
  window-number-mode: t
  savehist-mode: t
  exec-abbrev-cmd-mode: t
  show-paren-mode: t
  tooltip-mode: t
  mouse-wheel-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  global-auto-composition-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: (only . t)

Recent input:
<left> <left> <left> <left> <left> <left> <left> <left>=20
<left> <left> <left> <left> <left> <backspace> SPC=20
c a l l s M-q <backspace> <backspace> <backspace> <backspace>=20
<backspace> <backspace> s M-q <right> <right> <right>=20
<right> <right> <right> <right> <right> <right> <right>=20
<right> <right> <right> <right> <right> <right> <right>=20
<right> <right> <right> <right> <right> <right> <right>=20
<right> <right> <right> <right> <right> <right> <right>=20
<right> <down> <down> <return> <return> b <tab> C-c=20
C-c c <return> SPC SPC SPC S W C-k C-k C-k C-k C-k=20
C-k C-k C-k C-k C-k C-k C-k C-k C-k C-k C-k C-k H i=20
SPC W o l f g a n g , <return> <down> <down> <return>=20
<up> <return> P r i m a ! SPC ; - ) <return> <down>=20
M-q <down> <down> C-k C-k C-k C-k C-k C-k <return>=20
C-k C-k C-k C-k C-k C-k C-k C-k C-k C-k C-k J a , SPC=20
g e n a u s e <backspace> o SPC w i e SPC f =FC r SPC=20
G N H <backspace> U . SPC SPC F r i s c h SPC a u s=20
SPC d e m SPC C V S S-SPC u n d SPC z u m SPC s e l=20
b e r k o m p i l i e r e n . M-q <M-left> <M-left>=20
<M-right> <M-backspace> <backspace> M-q <end> <down>=20
<down> <down> <down> SPC SPC <backspace> <backspace>=20
<return> <return> g <tab> C-c C-c c <return> SPC c=20
l s 1 g <down> <down> <down> <return> <return> M-2=20
<tab> <tab> <return> <help-echo> <down-mouse-1> <mouse-1>=20
q <return> SPC ^ ^ ^ ^ ^ M-1 M-2 <down> <down> <down>=20
C-SPC <down> <down> <down> <down> <down> <down> <down>=20
<down> <down> <down> <down> <down> <down> <down> <down>=20
<down> <down> <up> M-w M-x r e b <return> <return>

Recent messages:
20081127T163816.052> Generating summary...done
20081127T163817.169> Generating summary...
20081127T163817.172> Generating summary...done
20081127T163818.539> Generating summary...
20081127T163818.542> Generating summary...done
20081127T163819.674> Generating summary...
20081127T163819.677> Generating summary...done
20081127T163820.704> Generating summary...
20081127T163820.708> Generating summary...done
Mark set

--=20
      "OS's and GUI's come and go, only Emacs has lasting power."
          Per Abrahamsen in <[email-masked]>