[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 40d4f78 154/187: New mode async-bytecomp-package-mode.
From: |
Michael Albinus |
Subject: |
[elpa] master 40d4f78 154/187: New mode async-bytecomp-package-mode. |
Date: |
Wed, 30 Dec 2015 11:50:20 +0000 |
branch: master
commit 40d4f7846df4bac8ad3929c2222eac41b2033933
Author: Thierry Volpiatto <address@hidden>
Commit: Thierry Volpiatto <address@hidden>
New mode async-bytecomp-package-mode.
* async-bytecomp.el (async-bytecomp-package-mode): Allow enabling
package--compile
advice with this mode.
---
async-bytecomp.el | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
diff --git a/async-bytecomp.el b/async-bytecomp.el
index 047e605..c103420 100644
--- a/async-bytecomp.el
+++ b/async-bytecomp.el
@@ -131,7 +131,7 @@ All *.elc files are systematically deleted before
proceeding."
(delete-dups
(append async-bytecomp-allowed-packages reqs)))))
-(defadvice package--compile (around byte-compile-async activate)
+(defadvice package--compile (around byte-compile-async)
(let ((cur-package (package-desc-name pkg-desc)))
(if (or (equal async-bytecomp-allowed-packages '(all))
(memq cur-package (async-bytecomp-get-allowed-pkgs)))
@@ -143,6 +143,15 @@ All *.elc files are systematically deleted before
proceeding."
(async-byte-recompile-directory (package-desc-dir pkg-desc) t))
ad-do-it)))
+(define-minor-mode async-bytecomp-package-mode
+ "Byte compile asynchronously packages installed with package.el.
+Async compilation of packages can be controlled by
+`async-bytecomp-allowed-packages'."
+ :group 'async
+ :global t
+ (if async-bytecomp-package-mode
+ (ad-activate 'package--compile)
+ (ad-deactivate 'package--compile)))
(provide 'async-bytecomp)
- [elpa] master 0ddafcf 131/187: Merge pull request #41 from PhilHudson/master, (continued)
- [elpa] master 0ddafcf 131/187: Merge pull request #41 from PhilHudson/master, Michael Albinus, 2015/12/30
- [elpa] master a96e6d4 141/187: Fix doctring (#46)., Michael Albinus, 2015/12/30
- [elpa] master dc63b59 132/187: Documentation tweaks; mention DEFAULT-DIRECTORY, Michael Albinus, 2015/12/30
- [elpa] master 005714e 142/187: Don't run the loop when async-bytecomp-allowed-packages is nil., Michael Albinus, 2015/12/30
- [elpa] master bafc3fa 145/187: Allow setting async-bytecomp-get-allowed-pkgs to compile async all packages., Michael Albinus, 2015/12/30
- [elpa] master a921e5f 136/187: Use always the args 0 and force for byte-recompile-directory., Michael Albinus, 2015/12/30
- [elpa] master 3ba79b2 143/187: Use package--get-deps to get packages dependencies., Michael Albinus, 2015/12/30
- [elpa] master 021be6f 153/187: * dired-async.el: Remove now unused dired-async-be-async., Michael Albinus, 2015/12/30
- [elpa] master f44f8be 150/187: * README.md: Update infos for dired-async., Michael Albinus, 2015/12/30
- [elpa] master 1da6e8f 144/187: Don't use package--get-deps that doesn't handle non installed packages., Michael Albinus, 2015/12/30
- [elpa] master 40d4f78 154/187: New mode async-bytecomp-package-mode.,
Michael Albinus <=
- [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, 2015/12/30