GNU bug report logs - #14967
24.3.50; package-delete deletes by trashing?

Previous Next

Package: emacs;

Reported by: Sebastian Wiesner <lunaryorn <at> gmail.com>

Date: Sat, 27 Jul 2013 11:36:02 UTC

Severity: wishlist

Tags: notabug

Found in version 24.3.50

Fixed in version 26.1

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Sebastian Wiesner <lunaryorn <at> gmail.com>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: Glenn Morris <rgm <at> gnu.org>, 14967 <at> debbugs.gnu.org
Subject: bug#14967: 24.3.50; package-delete deletes by trashing?
Date: Tue, 30 Jul 2013 16:40:26 +0200
2013/7/30 Stefan Monnier <monnier <at> iro.umontreal.ca>:
>> Well, obviously I consider this behavior a bug.  Trash is no place for
>> deleted packages.  I mean, does apt-get remove use the Trash?!
>
> I think the reasoning goes as follows:
> Emacs uses "trash" when deleting a file upon the user's request (as
> opposed to things like temp files used internally).

Emacs doesn't delete “files” here, it deletes “packages”.  Yes,
packages are just a bunch of files in the end, but conceptually a
package is not just a plain bunch of files.  It is a complex opaque
data structure providing Emacs Lisp code, with some complex
management/activation logic behind.

For this reason, a package can't be treated as a plain directory with
files.  For instance, restoring a package from trash doesn't restore
the package for any running Emacs session, simply because "package.el"
doesn't know about it.

Also, "package-delete" may be called in situations other than an
explicit user request.




This bug report was last modified 8 years and 30 days ago.

Previous Next


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