emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] emacs-25 cb5c261: * lisp/emacs-lisp/package.el (package--c


From: Artur Malabarba
Subject: [Emacs-diffs] emacs-25 cb5c261: * lisp/emacs-lisp/package.el (package--compile): Don't activate
Date: Sat, 12 Dec 2015 21:39:48 +0000

branch: emacs-25
commit cb5c26128f2cdfd5b14e553b347ae96048a838cb
Author: Artur Malabarba <address@hidden>
Commit: Artur Malabarba <address@hidden>

    * 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.
---
 lisp/emacs-lisp/package.el |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el
index 67d7898..3cf94ec 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]