[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 057d002 110/187: * async.el: Fix recompilation of async di
From: |
Michael Albinus |
Subject: |
[elpa] master 057d002 110/187: * async.el: Fix recompilation of async dir. |
Date: |
Wed, 30 Dec 2015 11:50:00 +0000 |
branch: master
commit 057d002e952d83d1bbb9db78da4b14f5417e18a9
Author: Thierry Volpiatto <address@hidden>
Commit: Thierry Volpiatto <address@hidden>
* async.el: Fix recompilation of async dir.
* async-bytecomp.el: load async on startup.
---
async-bytecomp.el | 11 ++++++++---
async.el | 2 +-
2 files changed, 9 insertions(+), 4 deletions(-)
diff --git a/async-bytecomp.el b/async-bytecomp.el
index 6658bc4..d4da424 100644
--- a/async-bytecomp.el
+++ b/async-bytecomp.el
@@ -49,6 +49,7 @@
unless dir return nil
for f in dir
when (file-exists-p f) do (delete-file f))
+ (load (locate-library "async"))
(let ((call-back
`(lambda (&optional ignore)
(if (file-exists-p async-byte-compile-log-file)
@@ -64,8 +65,9 @@
(goto-char (point-min))
(while (re-search-forward "^.*:Error:" nil t)
(incf n)))
- (when (> n 0)
- (message "Failed to compile %d files in directory `%s'"
n ,directory))))
+ (if (> n 0)
+ (message "Failed to compile %d files in directory
`%s'" n ,directory)
+ (message "Directory `%s' compiled asynchronously with
warnings" ,directory))))
(message "Directory `%s' compiled asynchronously with success"
,directory)))))
(async-start
`(lambda ()
@@ -87,7 +89,10 @@
(defadvice package--compile (around byte-compile-async activate)
(package-activate-1 pkg-desc)
- (async-byte-recompile-directory (package-desc-dir pkg-desc) 0 t))
+ (let ((compfn (if (fboundp 'async-byte-recompile-directory)
+ #'async-byte-recompile-directory
+ #'byte-recompile-directory)))
+ (funcall compfn (package-desc-dir pkg-desc) 0 t)))
(provide 'async-bytecomp)
diff --git a/async.el b/async.el
index 45cdb4c..bb97674 100644
--- a/async.el
+++ b/async.el
@@ -268,7 +268,7 @@ returns nil. It can still be useful, however, as an
argument to
(expand-file-name invocation-name
invocation-directory))
,finish-func
- "-Q" "-l" ,(symbol-file 'async-batch-invoke 'defun)
+ "-Q" "-l" ,(locate-library "async")
"-batch" "-f" "async-batch-invoke"
(if async-send-over-pipe
"<none>"
- [elpa] master c52a60f 115/187: Merge pull request #34 from michael-heerdegen/fix-33, (continued)
- [elpa] master c52a60f 115/187: Merge pull request #34 from michael-heerdegen/fix-33, Michael Albinus, 2015/12/30
- [elpa] master 1c35023 114/187: * async.el: Fix comment., Michael Albinus, 2015/12/30
- [elpa] master 4db2273 111/187: * async-bytecomp.el: Revert previous change in package--compile., Michael Albinus, 2015/12/30
- [elpa] master a6d9541 117/187: * async-bytecomp.el: Use only load., Michael Albinus, 2015/12/30
- [elpa] master 8e880a5 116/187: * smtpmail-async.el: Add code section no code-change., Michael Albinus, 2015/12/30
- [elpa] master 1f813ba 118/187: * async-bytecomp.el: Fix comment., Michael Albinus, 2015/12/30
- [elpa] master 6d4e1a5 119/187: Merge branch 'master' of github.com:jwiegley/emacs-async, Michael Albinus, 2015/12/30
- [elpa] master 8cfde3d 121/187: * async-bytecomp.el: Add comment., Michael Albinus, 2015/12/30
- [elpa] master 9b835e3 123/187: * async-bytecomp.el: Send errors in single buffer (#36)., Michael Albinus, 2015/12/30
- [elpa] master 228d022 122/187: * dired-async.el (dired-create-file): require dired-x for newer emacs versions., Michael Albinus, 2015/12/30
- [elpa] master 057d002 110/187: * async.el: Fix recompilation of async dir.,
Michael Albinus <=
- [elpa] master 57efc8d 120/187: * async-pkg.el: Don't compile., Michael Albinus, 2015/12/30
- [elpa] master aef3412 126/187: * async-bytecomp.el: emacs-24 indent., Michael Albinus, 2015/12/30
- [elpa] master d990787 127/187: * async-bytecomp.el (package--compile): load async-bytecomp., Michael Albinus, 2015/12/30
- [elpa] master 2f28229 134/187: Use cl-incf and don't compile test file., Michael Albinus, 2015/12/30
- [elpa] master f1b0fc5 125/187: * async-bytecomp.el: Be quiet when compiling for elpa., Michael Albinus, 2015/12/30
- [elpa] master 914a284 124/187: * async-bytecomp.el: Fix callback., Michael Albinus, 2015/12/30
- [elpa] master 8bb0876 130/187: Marked up file and buffer names, Michael Albinus, 2015/12/30
- [elpa] master 8464261 128/187: Changed symbol markup from Lisp idiom to Markdown, Michael Albinus, 2015/12/30
- [elpa] master 64d862f 129/187: Marked up 'nil' throughout, Michael Albinus, 2015/12/30
- [elpa] master 0ddafcf 131/187: Merge pull request #41 from PhilHudson/master, Michael Albinus, 2015/12/30