[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 1f12717 178/187: Don't recompute length fn-list, ensure op
From: |
Michael Albinus |
Subject: |
[elpa] master 1f12717 178/187: Don't recompute length fn-list, ensure operation is downcased for safety (#57). |
Date: |
Wed, 30 Dec 2015 11:50:32 +0000 |
branch: master
commit 1f127172225467c5b5f0df08d84e1a5e18990f0e
Author: Thierry Volpiatto <address@hidden>
Commit: Thierry Volpiatto <address@hidden>
Don't recompute length fn-list, ensure operation is downcased for safety
(#57).
* dired-async.el (dired-async-create-files): Do it.
---
dired-async.el | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/dired-async.el b/dired-async.el
index 01d1a8f..3f5349d 100644
--- a/dired-async.el
+++ b/dired-async.el
@@ -153,7 +153,8 @@ See `dired-create-files' for the behavior of arguments."
(setq dired-async-operation nil)
(let (dired-create-files-failures
failures async-fn-list
- skipped (success-count 0) (total (length fn-list))
+ skipped (success-count 0)
+ (total (length fn-list))
callback)
(let (to overwrite-query
overwrite-backup-query) ; for dired-handle-overwrite
@@ -218,8 +219,8 @@ ESC or `q' to not overwrite any of the remaining files,
(push (cons from to) async-fn-list)))))
(setq callback
`(lambda (&optional ignore)
- (dired-async-after-file-create ,(length fn-list))
- (when (string= ,operation "rename")
+ (dired-async-after-file-create ,total)
+ (when (string= ,(downcase operation) "rename")
(cl-loop for (file . to) in ',async-fn-list
do (and (get-file-buffer file)
(with-current-buffer (get-file-buffer file)
- [elpa] master d98799c 172/187: Add epg to inject variables in smtpmail (#54)., (continued)
- [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
- [elpa] master 3248303 174/187: Merge pull request #55 from syohex/correct-header, Michael Albinus, 2015/12/30
- [elpa] master 5c61408 179/187: Update version in *pkg.el file., Michael Albinus, 2015/12/30
- [elpa] master 1f12717 178/187: Don't recompute length fn-list, ensure operation is downcased for safety (#57).,
Michael Albinus <=
- [elpa] master 57257f0 167/187: Merge branch 'master' of github.com:jwiegley/emacs-async, Michael Albinus, 2015/12/30
- [elpa] master 128eb83 171/187: Fix pkg file and instructions in dired-async., Michael Albinus, 2015/12/30
- [elpa] master 53fccc5 175/187: Rename buffers after renaming (#56)., Michael Albinus, 2015/12/30
- [elpa] master ca73877 183/187: Merge pull request #57 from jwiegley/HEAD, Michael Albinus, 2015/12/30
- [elpa] master 4319ab6 177/187: Merge branch 'master' of github.com:jwiegley/emacs-async, Michael Albinus, 2015/12/30
- [elpa] master 2a40355 184/187: No need to require find-func., Michael Albinus, 2015/12/30
- [elpa] master c25bf17 180/187: Document async compilation of packages in README., Michael Albinus, 2015/12/30
- [elpa] master ef4a542 187/187: Merge branch 'master' of git://bzr.sv.gnu.org/emacs/elpa, Michael Albinus, 2015/12/30
- [elpa] master 36a21eb 181/187: Remove old require in test file., Michael Albinus, 2015/12/30
- [elpa] master b375440 186/187: Add subtree package async, Michael Albinus, 2015/12/30