[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 7625671 140/187: Async compile also dependendies (#46).
From: |
Michael Albinus |
Subject: |
[elpa] master 7625671 140/187: Async compile also dependendies (#46). |
Date: |
Wed, 30 Dec 2015 11:50:14 +0000 |
branch: master
commit 7625671894ac248de31c55db2bc92ba23078fa35
Author: Thierry Volpiatto <address@hidden>
Commit: Thierry Volpiatto <address@hidden>
Async compile also dependendies (#46).
* async-bytecomp.el (async-bytecomp-get-allowed-pkgs): New.
(package--compile): Use it.
---
async-bytecomp.el | 13 ++++++++++++-
1 files changed, 12 insertions(+), 1 deletions(-)
diff --git a/async-bytecomp.el b/async-bytecomp.el
index 1638fb9..d4b761e 100644
--- a/async-bytecomp.el
+++ b/async-bytecomp.el
@@ -99,9 +99,20 @@ All *.elc files are systematically deleted before
proceeding."
call-back)
(message "Started compiling asynchronously directory %s" directory)))
+(defvar package-archive-contents)
+(declare-function package-desc-reqs "package.el" (cl-x))
+
+(defun async-bytecomp-get-allowed-pkgs ()
+ (cl-loop for p in async-bytecomp-allowed-packages
+ for pkg-desc = (car (assoc-default p package-archive-contents))
+ append (mapcar 'car (package-desc-reqs pkg-desc)) into reqs
+ finally return
+ (cl-remove-duplicates
+ (append async-bytecomp-allowed-packages reqs))))
+
(defadvice package--compile (around byte-compile-async activate)
(let ((cur-package (package-desc-name pkg-desc)))
- (if (memq cur-package async-bytecomp-allowed-packages)
+ (if (memq cur-package (async-bytecomp-get-allowed-pkgs))
(progn
(when (eq cur-package 'async)
(fmakunbound 'async-byte-recompile-directory))
- [elpa] master 40d4f78 154/187: New mode async-bytecomp-package-mode., (continued)
- [elpa] master 40d4f78 154/187: New mode async-bytecomp-package-mode., Michael Albinus, 2015/12/30
- [elpa] master 348600d 138/187: Unbound async-byte-recompile-directory when reinstalling async., Michael Albinus, 2015/12/30
- [elpa] master 12235bd 156/187: * async-pkg.el: Update version number., Michael Albinus, 2015/12/30
- [elpa] master 2235bc9 135/187: Inject bytecomp variables (#44)., Michael Albinus, 2015/12/30
- [elpa] master c9fb3f5 147/187: async-bytecomp-allowed-packages should be a list of symbols., Michael Albinus, 2015/12/30
- [elpa] master 2b01ad8 137/187: Merge branch 'master' of github.com:jwiegley/emacs-async, Michael Albinus, 2015/12/30
- [elpa] master 98ef20d 162/187: Change mode-line face., Michael Albinus, 2015/12/30
- [elpa] master 2143217 159/187: Bind print-level and print-length (#48)., Michael Albinus, 2015/12/30
- [elpa] master 89f1ca6 133/187: Merge pull request #42 from mneilsen/master, Michael Albinus, 2015/12/30
- [elpa] master 1f5e89b 146/187: * async-bytecomp.el (package--compile): Fix typo., Michael Albinus, 2015/12/30
- [elpa] master 7625671 140/187: Async compile also dependendies (#46).,
Michael Albinus <=
- [elpa] master d250e7b 139/187: Allow customizing which packages compile async (#46)., Michael Albinus, 2015/12/30
- [elpa] master 51c598b 149/187: Add autoload cookie and make dired-async--modeline-mode internal., Michael Albinus, 2015/12/30
- [elpa] master 23edf9e 151/187: * dired-async.el (dired-async-mode): Fix group name., Michael Albinus, 2015/12/30
- [elpa] master c368125 155/187: * async-bytecomp.el: Add autoload cookies., Michael Albinus, 2015/12/30
- [elpa] master bedfa96 152/187: * dired-async.el: Fix compatibility with emacs-24.3., Michael Albinus, 2015/12/30
- [elpa] master 753d593 148/187: Allow enabling dired-async with a minor-mode., Michael Albinus, 2015/12/30
- [elpa] master cdbf622 157/187: No message on startup when quiet., Michael Albinus, 2015/12/30
- [elpa] master 4ab15f7 161/187: Merge pull request #50 from tarsius/master, Michael Albinus, 2015/12/30
- [elpa] master a97aa4c 166/187: Don't call package-activate-1 in package--compile., Michael Albinus, 2015/12/30
- [elpa] master 7616e0c 165/187: Check if pkg is member of package-archive-contents (#51)., Michael Albinus, 2015/12/30