From: Glenn Morris Date: Mon, 19 Jun 2017 18:39:25 +0000 (-0400) Subject: Don't put deleted packages in the trash (bug#14967) X-Git-Tag: emacs-26.0.90~521^2~39 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=65b323e14e09fa6024fee93fd484deea4b7f51a2;p=emacs.git Don't put deleted packages in the trash (bug#14967) * lisp/emacs-lisp/package.el (package-delete): Don't pay attention to delete-by-moving-to-trash. ; * etc/NEWS: Mention this. --- diff --git a/etc/NEWS b/etc/NEWS index 85d12733670..78d374840aa 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -755,6 +755,9 @@ header's value. where the GnuPG home directory (used for signature verification) is located and whether GnuPG's option "--homedir" is used or not. +--- +*** Deleting a package no longer respects 'delete-by-moving-to-trash'. + ** Tramp +++ diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el index bebfd18d7a6..4245294457f 100644 --- a/lisp/emacs-lisp/package.el +++ b/lisp/emacs-lisp/package.el @@ -2127,7 +2127,7 @@ If NOSAVE is non-nil, the package is not removed from (package-desc-name pkg-used-elsewhere-by))) (t (add-hook 'post-command-hook #'package-menu--post-refresh) - (delete-directory dir t t) + (delete-directory dir t) ;; Remove NAME-VERSION.signed and NAME-readme.txt files. (dolist (suffix '(".signed" "readme.txt")) (let* ((version (package-version-join (package-desc-version pkg-desc)))