emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master dc63e41 27/39: Revert last commit.


From: Thierry Volpiatto
Subject: [elpa] master dc63e41 27/39: Revert last commit.
Date: Wed, 18 May 2016 18:02:53 +0000 (UTC)

branch: master
commit dc63e41323d772bb1b4b9870fad08ac65745b7f2
Author: Thierry Volpiatto <address@hidden>
Commit: Thierry Volpiatto <address@hidden>

    Revert last commit.
---
 dired-async.el |   46 ++++++++++++++++++++++++----------------------
 1 file changed, 24 insertions(+), 22 deletions(-)

diff --git a/dired-async.el b/dired-async.el
index 1865eda..c18ec53 100644
--- a/dired-async.el
+++ b/dired-async.el
@@ -137,17 +137,18 @@ Should take same args as `message'."
          0.1 nil
          (lambda ()
            ;; First send error messages.
-           (apply dired-async-message-function
-                  (cond (failures
-                         (list "%s failed for %d of %d file%s"
-                               'dired-async-failures
-                               (car operation) (length failures)
-                               total (dired-plural-s total)))
-                        (skipped
-                         (list "%s: %d of %d file%s skipped"
-                               'dired-async-failures
-                               (car operation) (length skipped) total
-                               (dired-plural-s total)))))
+           (cond (failures
+                  (funcall dired-async-message-function
+                           "%s failed for %d of %d file%s"
+                           'dired-async-failures
+                           (car operation) (length failures)
+                           total (dired-plural-s total)))
+                 (skipped
+                  (funcall dired-async-message-function
+                           "%s: %d of %d file%s skipped"
+                           'dired-async-failures
+                           (car operation) (length skipped) total
+                           (dired-plural-s total))))
            ;; Finally send the success message.
            (funcall dired-async-message-function
                     "Asynchronous %s of %s file(s) on %s file(s) done"
@@ -233,17 +234,18 @@ ESC or `q' to not overwrite any of the remaining files,
       ;; In this case async process will never start and callback
       ;; will have no chance to run, so notify failures here.
       (unless async-fn-list
-        (apply dired-async-message-function
-               (cond (failures
-                      (list "%s failed for %d of %d file%s"
-                            'dired-async-failures
-                            operation (length failures)
-                            total (dired-plural-s total)))
-                     (skipped
-                      (list "%s: %d of %d file%s skipped"
-                            'dired-async-failures
-                            operation (length skipped) total
-                            (dired-plural-s total))))))
+        (cond (failures
+               (funcall dired-async-message-function
+                        "%s failed for %d of %d file%s"
+                        'dired-async-failures
+                        operation (length failures)
+                        total (dired-plural-s total)))
+              (skipped
+               (funcall dired-async-message-function
+                        "%s: %d of %d file%s skipped"
+                        'dired-async-failures
+                        operation (length skipped) total
+                        (dired-plural-s total)))))
       ;; Setup callback.
       (setq callback
             (lambda (&optional _ignore)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]