Function: package-recompile-all

package-recompile-all is an autoloaded, interactive and byte-compiled function defined in package.el.gz.

Signature

(package-recompile-all)

Documentation

Byte-compile all installed packages.

This is meant to be used only in the case the byte-compiled files are invalid due to changed byte-code, macros or the like.

View in manual

Probably introduced at or before Emacs version 29.1.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/emacs-lisp/package.el.gz
;;;###autoload
(defun package-recompile-all ()
  "Byte-compile all installed packages.
This is meant to be used only in the case the byte-compiled files
are invalid due to changed byte-code, macros or the like."
  (interactive)
  (pcase-dolist (`(_ ,pkg-desc) package-alist)
    (with-demoted-errors "Error while recompiling: %S"
      (package-recompile pkg-desc))))