]> code.delx.au - gnu-emacs/commitdiff
* lisp/emacs-lisp/package.el (package--compile): Don't activate
authorArtur Malabarba <bruce.connor.am@gmail.com>
Sat, 12 Dec 2015 21:39:19 +0000 (21:39 +0000)
committerArtur Malabarba <bruce.connor.am@gmail.com>
Sat, 12 Dec 2015 21:39:42 +0000 (21:39 +0000)
`package-unpack' takes care of all activations now (other than
`package-initialize).  `package--compile' now only compiles.

lisp/emacs-lisp/package.el

index 67d78987a4f294107e6ec33485604e88395e8b45..3cf94ec0255137790b87f4329922d0c8ed6b817d 100644 (file)
@@ -923,11 +923,12 @@ untar into a directory named DIR; otherwise, signal an error."
 ;;;; Compilation
 (defvar warning-minimum-level)
 (defun package--compile (pkg-desc)
-  "Byte-compile installed package PKG-DESC."
+  "Byte-compile installed package PKG-DESC.
+This assumes that `pkg-desc' has already been activated with
+`package-activate-1'."
   (let ((warning-minimum-level :error)
         (save-silently inhibit-message)
         (load-path load-path))
-    (package--activate-autoloads-and-load-path pkg-desc)
     (byte-recompile-directory (package-desc-dir pkg-desc) 0 t)))
 
 ;;;; Inferring package from current buffer