summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
diff options
context:
space:
mode:
authorArtur Malabarba <bruce.connor.am@gmail.com>2015-12-12 21:39:19 +0000
committerArtur Malabarba <bruce.connor.am@gmail.com>2015-12-12 21:39:42 +0000
commitcb5c26128f2cdfd5b14e553b347ae96048a838cb (patch)
tree013c1c744eaceded62cd6bd4b09d092d866c4eb5 /lisp/emacs-lisp
parent625a5df83414b49a82da8cc47a91aa1758fd71d4 (diff)
downloademacs-cb5c26128f2cdfd5b14e553b347ae96048a838cb.tar.gz
* lisp/emacs-lisp/package.el (package--compile): Don't activate
`package-unpack' takes care of all activations now (other than `package-initialize). `package--compile' now only compiles.
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r--lisp/emacs-lisp/package.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el
index 67d78987a4f..3cf94ec0255 100644
--- a/lisp/emacs-lisp/package.el
+++ b/lisp/emacs-lisp/package.el
@@ -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