[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 5ff0f9b 087/187: * helm-async.el: Use cl-lib instead of cl
From: |
Michael Albinus |
Subject: |
[elpa] master 5ff0f9b 087/187: * helm-async.el: Use cl-lib instead of cl. |
Date: |
Wed, 30 Dec 2015 11:49:51 +0000 |
branch: master
commit 5ff0f9b69477f23ee9d8b2c61538c495302e758c
Author: Thierry Volpiatto <address@hidden>
Commit: Thierry Volpiatto <address@hidden>
* helm-async.el: Use cl-lib instead of cl.
---
helm-async.el | 32 ++++++++++++++------------------
1 files changed, 14 insertions(+), 18 deletions(-)
diff --git a/helm-async.el b/helm-async.el
index 3073e15..66b0331 100644
--- a/helm-async.el
+++ b/helm-async.el
@@ -34,17 +34,13 @@
;; To use it, put this in your .emacs:
;;
;; (eval-after-load "dired-aux"
-;; '(require 'helm-async))
+;; '(require 'dired-async))
;;
-;; NOTE: This file is incompatible with dired-async.el and async-file.el,
-;; so be sure to NOT LOAD these files.
;;
-;; It allows doing all these async operations from helm, but you can also
-;; use it without installing helm and use it only from dired.
;;; Code:
-(eval-when-compile (require 'cl)) ; for declare
+(require 'cl-lib)
(require 'dired-aux)
(require 'async)
@@ -112,10 +108,10 @@ This allow to turn off async features provided to this
package."
(force-mode-line-update)))
(defun dired-async-processes ()
- (loop for p in (process-list)
- when (loop for c in (process-command p) thereis
- (string= "async-batch-invoke" c))
- collect p))
+ (cl-loop for p in (process-list)
+ when (cl-loop for c in (process-command p) thereis
+ (string= "async-batch-invoke" c))
+ collect p))
(defun dired-async-kill-process ()
(interactive)
@@ -148,11 +144,11 @@ This allow to turn off async features provided to this
package."
"Return a form to kill ftp process in child emacs."
(quote
(progn
- (require 'cl)
- (let ((buf (loop for b in (buffer-list)
- thereis (and (string-match
- "\\`\\*ftp.*"
- (buffer-name b)) b))))
+ (require 'cl-lib)
+ (let ((buf (cl-loop for b in (buffer-list)
+ thereis (and (string-match
+ "\\`\\*ftp.*"
+ (buffer-name b)) b))))
(when buf (kill-buffer buf))))))
(defun dired-create-files (file-creator operation fn-list name-constructor
@@ -290,12 +286,12 @@ ESC or `q' to not overwrite any of the remaining files,
;; Start async process.
(when (and async-fn-list dired-async-be-async)
(async-start `(lambda ()
- (require 'cl) (require 'dired-aux)
+ (require 'cl-lib) (require 'dired-aux)
,(async-inject-variables
dired-async-env-variables-regexp)
(condition-case err
(let ((dired-recursive-copies (quote always)))
- (loop for (f . d) in (quote ,async-fn-list)
- do (funcall (quote ,file-creator) f d t)))
+ (cl-loop for (f . d) in (quote ,async-fn-list)
+ do (funcall (quote ,file-creator) f d t)))
(file-error
(with-temp-file ,dired-async-log-file
(insert (format "%S" err)))))
- [elpa] master 204750d 081/187: Revert "* helm-async.el: Fix error handling.", (continued)
- [elpa] master 204750d 081/187: Revert "* helm-async.el: Fix error handling.", Michael Albinus, 2015/12/30
- [elpa] master b05c63a 083/187: Don't rely on async.el being in load-path., Michael Albinus, 2015/12/30
- [elpa] master 374f514 079/187: Complete the docstring for "async--get-function", Michael Albinus, 2015/12/30
- [elpa] master 9704eb8 080/187: Merge pull request #21 from DarwinAwardWinner/lexbind-fix, Michael Albinus, 2015/12/30
- [elpa] master 4a7b07b 084/187: Merge pull request #23 from DarwinAwardWinner/no-load-path-fix, Michael Albinus, 2015/12/30
- [elpa] master 2a532d3 077/187: Replace closure prevention with closure sanitation, Michael Albinus, 2015/12/30
- [elpa] master f18c735 078/187: Merge pull request #19 from DarwinAwardWinner/lexbind-fix, Michael Albinus, 2015/12/30
- [elpa] master 3f751fb 082/187: Revert master back to 242ae73, Michael Albinus, 2015/12/30
- [elpa] master eff5419 088/187: Rename helm-async.el to dired-async.el, Michael Albinus, 2015/12/30
- [elpa] master ec8decc 090/187: * dired-async.el (helm-async-be-async): alias for dired-async-be-async., Michael Albinus, 2015/12/30
- [elpa] master 5ff0f9b 087/187: * helm-async.el: Use cl-lib instead of cl.,
Michael Albinus <=
- [elpa] master aabc7b4 086/187: * helm-async.el: Rename all with dired-async prefix instead of helm-async., Michael Albinus, 2015/12/30
- [elpa] master a37e1db 089/187: * dired-async.el: Finish converting all names to dired*., Michael Albinus, 2015/12/30
- [elpa] master b311374 092/187: * dired-async.el (dired-async-mode): Notify number of jobs running in lighter., Michael Albinus, 2015/12/30
- [elpa] master b514e21 093/187: * async-test.el: Remove now unnecessary tests., Michael Albinus, 2015/12/30
- [elpa] master 4d14cbb 094/187: * async-test.el: Update copyrights., Michael Albinus, 2015/12/30
- [elpa] master 3712607 097/187: * smtpmail-async.el: Exclude some vars when injecting (#22)., Michael Albinus, 2015/12/30
- [elpa] master a0195ad 104/187: Fix markdown in README, Michael Albinus, 2015/12/30
- [elpa] master 3a23aa1 095/187: * dired-async.el (helm-async-be-async): Move it as obsolete variable alias to helm., Michael Albinus, 2015/12/30
- [elpa] master eaa0ec1 098/187: * smtpmail-async.el: Fix encoding problems (#27), Michael Albinus, 2015/12/30
- [elpa] master 05c9861 103/187: * smtpmail-async.el (async-smtpmail-before-send-hook): Add docstring., Michael Albinus, 2015/12/30