From a previous question of mine, I've included the following function in my .emacs to quickly update all installed packages:
(defun endless/upgrade () "Upgrade all packages, no questions asked." (interactive) (save-window-excursion (list-packages) (package-menu-mark-upgrades) (package-menu-execute 'no-query)))
I recently installed openSUSE (came from Windows), and running that command does not currently work. I'm getting an error message in the minibuffer area (I think) that looks more or less like this:
progn: Wrong number of arguments: #[nil "ÆÇ! ÈÉ!ÊebmUÊfË=OÊÌ*`Í\"² Î=DÏ@!ÐA!B BO Ñ=O@BÊy)}ÒGÓUjÔÕ@\"tÔÖG×ÏØ##!}ÙÚ\" ÙÒ GÓUÔÛ @@) @A#¢ÔÜ G×Ý Ø##!Õ Ê(Ñ(@Þ)*Â) Çßàá)(A(¯*ÙÈâ! ääã ìóäå\"öæç!," [id cmd delete-list install-list x elt derived-mode-p package-menu-mode error "The current buffer is not in Package Menu mode" ...] 9 ("/usr/share/emacs/24.3/lisp/emacs-lisp/package.elc" . 51221) nil], 1
With debug-on-error toggled on, I get the following after the error message:
package-menu-execute(no-query) (progn (list-packages) (package-menu-mark-upgrades) (package-menu-execute (quote no-query))) (unwind-protect (progn (list-packages) (package-menu-mark-upgrades) (package-menu-execute (quote no-query))) (set-window-configuration wconfig)) (let ((wconfig (current-window-configuration))) (unwind-protect (progn (list-packages) (package-menu-mark-upgrades) (package-menu-execute (quote no-query))) (set-window-configuration wconfig))) endless/upgrade() call-interactively(endless/upgrade record nil) command-execute(endless/upgrade record) helm-M-x(nil "endless/upgrade") call-interactively(helm-M-x nil nil)
Did I miss installing something I need? I can still update packages manually with list-packages etc.