[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master a921e5f 136/187: Use always the args 0 and force for byte-
From: |
Michael Albinus |
Subject: |
[elpa] master a921e5f 136/187: Use always the args 0 and force for byte-recompile-directory. |
Date: |
Wed, 30 Dec 2015 11:50:12 +0000 |
branch: master
commit a921e5fcd40c367e27ef0491ab067df1eab50892
Author: Thierry Volpiatto <address@hidden>
Commit: Thierry Volpiatto <address@hidden>
Use always the args 0 and force for byte-recompile-directory.
* async-bytecomp.el (async-byte-recompile-directory): Remove confusing
args used in byte-recompile-directory and add docstring.
(package--compile): Remove old args of async-byte-recompile-directory.
---
async-bytecomp.el | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/async-bytecomp.el b/async-bytecomp.el
index 8920c22..eaf3ad5 100644
--- a/async-bytecomp.el
+++ b/async-bytecomp.el
@@ -44,7 +44,9 @@
(defvar async-byte-compile-log-file "~/.emacs.d/async-bytecomp.log")
-(defun async-byte-recompile-directory (directory &optional arg force quiet)
+(defun async-byte-recompile-directory (directory &optional quiet)
+ "Compile all *.el files in DIRECTORY asynchronously.
+All *.elc files are systematically deleted before proceeding."
(cl-loop with dir = (directory-files directory t "\\.elc\\'")
unless dir return nil
for f in dir
@@ -81,7 +83,7 @@
(let ((default-directory (file-name-as-directory ,directory))
error-data)
(add-to-list 'load-path default-directory)
- (byte-recompile-directory ,directory ,arg ,force)
+ (byte-recompile-directory ,directory 0 t)
(when (get-buffer byte-compile-log-buffer)
(setq error-data (with-current-buffer byte-compile-log-buffer
(buffer-substring-no-properties (point-min)
(point-max))))
@@ -90,7 +92,7 @@
(erase-buffer)
(insert error-data))))))
call-back)
- (message "Started compiling asynchronously directory %s..." directory)))
+ (message "Started compiling asynchronously directory %s" directory)))
(defadvice package--compile (around byte-compile-async activate)
;; FIXME this seems redundant and unneeded, the only thing it
@@ -100,7 +102,7 @@
;; compilation in package-activate (force arg).
(package-activate-1 pkg-desc)
(load "async-bytecomp")
- (async-byte-recompile-directory (package-desc-dir pkg-desc) 0 t t))
+ (async-byte-recompile-directory (package-desc-dir pkg-desc) t))
(provide 'async-bytecomp)
- [elpa] master f1b0fc5 125/187: * async-bytecomp.el: Be quiet when compiling for elpa., (continued)
- [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
- [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 <=
- [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, 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