Add prefix arg support prelude-update-packages

With a prefix arg it will update all installed packages.
This commit is contained in:
Bozhidar Batsov 2013-12-07 01:01:54 +02:00
parent 4ca22fbf1c
commit c65b4ca336

View file

@ -463,13 +463,16 @@ Doesn't mess with special buffers."
(prelude-recompile-init) (prelude-recompile-init)
(message "Update finished. Restart Emacs to complete the process."))) (message "Update finished. Restart Emacs to complete the process.")))
(defun prelude-update-packages () (defun prelude-update-packages (&optional arg)
"Update Prelude's packages. "Update Prelude's packages.
This includes package installed via `prelude-require-package'.
This includes package installed via `prelude-require-package'." With a prefix ARG updates all installed packages."
(interactive) (interactive "P")
(when (y-or-n-p "Do you want to update Prelude's packages? ") (when (y-or-n-p "Do you want to update Prelude's packages? ")
(epl-upgrade prelude-packages) (if arg
(epl-upgrade)
(epl-upgrade prelude-packages))
(message "Update finished. Restart Emacs to complete the process."))) (message "Update finished. Restart Emacs to complete the process.")))
(defun thing-at-point-goto-end-of-integer () (defun thing-at-point-goto-end-of-integer ()