Commit 88acd70e authored by Thierry Volpiatto's avatar Thierry Volpiatto Committed by Artur Malabarba

emacs-lisp/package.el (package-reinstall): Don't change selected status.

parent e17d0337
2015-02-03 Thierry Volpiatto <>
* emacs-lisp/package.el (package-reinstall): Don't change package's selected status.
(package-delete): New NOSAVE argument.
2015-02-03 Michael Albinus <>
* net/tramp-sh.el (tramp-histfile-override): Fix docstring.
......@@ -1239,7 +1239,8 @@ to `package-selected-packages'."
"Reinstall package: "
(mapcar #'symbol-name
(mapcar #'car package-alist))))))
(package-delete (cadr (assq pkg package-alist)) t)
(package-delete (cadr (assq pkg package-alist)) 'force
(memq pkg package-selected-packages))
(package-install pkg))
(defun package-strip-rcs-id (str)
......@@ -1470,7 +1471,7 @@ with PKG-DESC entry removed."
(and (memq pkg (mapcar #'car (package-desc-reqs (cadr p))))
(car p))))))
(defun package-delete (pkg-desc &optional force)
(defun package-delete (pkg-desc &optional force nosave)
"Delete package PKG-DESC.
Argument PKG-DESC is a full description of package as vector.
......@@ -1506,7 +1507,8 @@ elsewhere."
(unless (cdr pkgs)
(setq package-alist (delq pkgs package-alist))))
;; Update package-selected-packages.
(when (memq name package-selected-packages)
(when (and (memq name package-selected-packages)
(null nosave))
'package-selected-packages (remove name package-selected-packages)))
(message "Package `%s' deleted." (package-desc-full-name pkg-desc))))))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment