]> code.delx.au - gnu-emacs-elpa/commitdiff
Ensure dired-copy-preserve-time is passed to child with its current value.
authorThierry Volpiatto <thierry.volpiatto@gmail.com>
Tue, 26 Apr 2016 17:43:37 +0000 (19:43 +0200)
committerThierry Volpiatto <thierry.volpiatto@gmail.com>
Tue, 26 Apr 2016 17:43:37 +0000 (19:43 +0200)
Using inject would load dozen of unneeded dired stuff.

* dired-async.el (dired-async-create-files): Do it.

dired-async.el

index 18e86fc86a01fae2222e2989fb6e6b7c7747d8fa..41f2b795562e301917e186870371462d75808fb7 100644 (file)
@@ -255,7 +255,9 @@ ESC or `q' to not overwrite any of the remaining files,
                       (require 'cl-lib) (require 'dired-aux) (require 'dired-x)
                       ,(async-inject-variables dired-async-env-variables-regexp)
                       (condition-case err
-                          (let ((dired-recursive-copies (quote always)))
+                          (let ((dired-recursive-copies (quote always))
+                                (dired-copy-preserve-time
+                                 ,dired-copy-preserve-time))
                             ;; Inline `backup-file' as long as it is not
                             ;; available in emacs.
                             (defalias 'backup-file