[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master ee727e1 168/187: Add async to load-path when recompiling i
From: |
Michael Albinus |
Subject: |
[elpa] master ee727e1 168/187: Add async to load-path when recompiling itself. |
Date: |
Wed, 30 Dec 2015 11:50:26 +0000 |
branch: master
commit ee727e1a7762383634a0548eeb2d4e60bc30c84d
Author: Thierry Volpiatto <address@hidden>
Commit: Thierry Volpiatto <address@hidden>
Add async to load-path when recompiling itself.
* async-bytecomp.el (package--compile): Do it.
---
async-bytecomp.el | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/async-bytecomp.el b/async-bytecomp.el
index dda71f2..f1b29a5 100644
--- a/async-bytecomp.el
+++ b/async-bytecomp.el
@@ -139,13 +139,17 @@ All *.elc files are systematically deleted before
proceeding."
async-bytecomp-allowed-packages)))
(defadvice package--compile (around byte-compile-async)
- (let ((cur-package (package-desc-name pkg-desc)))
+ (let ((cur-package (package-desc-name pkg-desc))
+ (pkg-dir (package-desc-dir pkg-desc)))
(if (or (equal async-bytecomp-allowed-packages '(all))
(memq cur-package (async-bytecomp-get-allowed-pkgs)))
(progn
(when (eq cur-package 'async)
(fmakunbound 'async-byte-recompile-directory))
- (load "async-bytecomp") ; emacs-24.3 don't reload new files.
+ (when (and (string= cur-package "async")
+ (not (member pkg-dir load-path)))
+ (push pkg-dir load-path))
+ (load "async-bytecomp")
(async-byte-recompile-directory (package-desc-dir pkg-desc) t))
ad-do-it)))
- [elpa] master d250e7b 139/187: Allow customizing which packages compile async (#46)., (continued)
- [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
- [elpa] master ee727e1 168/187: Add async to load-path when recompiling itself.,
Michael Albinus <=
- [elpa] master 40814ea 173/187: Correct package headers, Michael Albinus, 2015/12/30
- [elpa] master 3499a32 176/187: Only rename buffers on rename operation (#56)., Michael Albinus, 2015/12/30
- [elpa] master d98799c 172/187: Add epg to inject variables in smtpmail (#54)., Michael Albinus, 2015/12/30
- [elpa] master 062c609 158/187: Add more helm packages to compile async., Michael Albinus, 2015/12/30
- [elpa] master cbd8d9a 164/187: Update version number., Michael Albinus, 2015/12/30
- [elpa] master 8c0cc0f 160/187: Add magit to async-bytecomp-allowed-package., Michael Albinus, 2015/12/30
- [elpa] master 0b60259 163/187: Check if package-archive-contents is populated (#51)., Michael Albinus, 2015/12/30
- [elpa] master 1794ea4 182/187: async-start is now a function (#43)., Michael Albinus, 2015/12/30
- [elpa] master 8bb464f 170/187: Add melpa badges to README., Michael Albinus, 2015/12/30
- [elpa] master 1ddb3a0 169/187: Add to load-path and load only async., Michael Albinus, 2015/12/30