[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master e35506f 18/39: Remove unuseful code never called.
From: |
Thierry Volpiatto |
Subject: |
[elpa] master e35506f 18/39: Remove unuseful code never called. |
Date: |
Wed, 18 May 2016 18:02:52 +0000 (UTC) |
branch: master
commit e35506faac6315da3c25b72682c99210b2d0bb28
Author: Thierry Volpiatto <address@hidden>
Commit: Thierry Volpiatto <address@hidden>
Remove unuseful code never called.
* dired-async.el (dired-async-create-files):
Remove dired-create-files-failures stuff that don't happen on host but
child.
---
dired-async.el | 34 ++++++++++++----------------------
1 file changed, 12 insertions(+), 22 deletions(-)
diff --git a/dired-async.el b/dired-async.el
index b253ca2..418f265 100644
--- a/dired-async.el
+++ b/dired-async.el
@@ -153,7 +153,6 @@ See `dired-create-files' for the behavior of arguments."
(setq dired-async-operation nil)
(setq overwrite-query nil)
(let ((total (length fn-list))
- dired-create-files-failures
failures async-fn-list skipped callback)
(let (to)
(dolist (from fn-list)
@@ -218,27 +217,18 @@ ESC or `q' to not overwrite any of the remaining files,
(with-current-buffer (get-file-buffer file)
(set-visited-file-name to nil t))))))))
;; Handle error happening in host emacs.
- (cond
- (dired-create-files-failures
- (setq failures (nconc failures dired-create-files-failures))
- (dired-log-summary
- (format "%s failed for %d file%s in %d requests"
- operation (length failures)
- (dired-plural-s (length failures))
- total)
- failures))
- (failures
- (dired-log-summary
- (format "%s failed for %d of %d file%s"
- operation (length failures)
- total (dired-plural-s total))
- failures))
- (skipped
- (dired-log-summary
- (format "%s: %d of %d file%s skipped"
- operation (length skipped) total
- (dired-plural-s total))
- skipped)))
+ (cond (failures
+ (dired-log-summary
+ (format "%s failed for %d of %d file%s"
+ operation (length failures)
+ total (dired-plural-s total))
+ failures))
+ (skipped
+ (dired-log-summary
+ (format "%s: %d of %d file%s skipped"
+ operation (length skipped) total
+ (dired-plural-s total))
+ skipped)))
;; Start async process.
(when async-fn-list
(async-start `(lambda ()
- [elpa] master b1b4569 06/39: fix a typo, (continued)
- [elpa] master b1b4569 06/39: fix a typo, Thierry Volpiatto, 2016/05/18
- [elpa] master 0a773f2 16/39: Ensure dired-async--modeline-mode is called., Thierry Volpiatto, 2016/05/18
- [elpa] master 858a3f9 13/39: Fix backup fn, DRY and ignore symlinks directories., Thierry Volpiatto, 2016/05/18
- [elpa] master 1ce4381 10/39: Allow reproducing "cp --backup=numbered from to"., Thierry Volpiatto, 2016/05/18
- [elpa] master 2bfd6a0 15/39: Ensure dired-copy-preserve-time is passed to child with its current value., Thierry Volpiatto, 2016/05/18
- [elpa] master 4f6b98d 24/39: Fix operation arg of callback., Thierry Volpiatto, 2016/05/18
- [elpa] master a7e8cf3 30/39: When failures have been printed to dired log add the date at bob., Thierry Volpiatto, 2016/05/18
- [elpa] master dc63e41 27/39: Revert last commit., Thierry Volpiatto, 2016/05/18
- [elpa] master c9ddbbc 11/39: Merge pull request #62 from jwiegley/backup_files, Thierry Volpiatto, 2016/05/18
- [elpa] master ed05631 03/39: Assign copyrights to the FSF, add autoloads file, Thierry Volpiatto, 2016/05/18
- [elpa] master e35506f 18/39: Remove unuseful code never called.,
Thierry Volpiatto <=
- [elpa] master af8933d 20/39: Unquote all callbacks., Thierry Volpiatto, 2016/05/18
- [elpa] master a48e509 28/39: Ensure a new line is added when printing to dired log buffer., Thierry Volpiatto, 2016/05/18
- [elpa] master 4d6efb9 25/39: Handle error also on host when async-list of file is empty., Thierry Volpiatto, 2016/05/18
- [elpa] master 8632abd 39/39: Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs/elpa, Thierry Volpiatto, 2016/05/18
- [elpa] master 8d1a26d 29/39: Remove unused commented code., Thierry Volpiatto, 2016/05/18
- [elpa] master 228ec4b 34/39: Handle errors file by file instead of returning on first error., Thierry Volpiatto, 2016/05/18
- [elpa] master 0b8fbed 23/39: Remove commented line, no code change., Thierry Volpiatto, 2016/05/18
- [elpa] master 3ec3fb6 02/39: Declare package-alist in async-bytecomp.., Thierry Volpiatto, 2016/05/18
- [elpa] master dd77b81 22/39: Fix formatting the help form in dired-create-files., Thierry Volpiatto, 2016/05/18
- [elpa] master 8d27590 21/39: Finally handle the failures correctly., Thierry Volpiatto, 2016/05/18