[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/async dea9627 31/60: Merge pull request #87 from darkfe
From: |
Stefan Monnier |
Subject: |
[elpa] externals/async dea9627 31/60: Merge pull request #87 from darkfeline/async |
Date: |
Tue, 8 Oct 2019 10:11:32 -0400 (EDT) |
branch: externals/async
commit dea9627e64465678024262d8b92453e2cc0f5d47
Merge: 87853ae afe10c4
Author: John Wiegley <address@hidden>
Commit: GitHub <address@hidden>
Merge pull request #87 from darkfeline/async
Add one-shot dired-async commands
---
dired-async.el | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
diff --git a/dired-async.el b/dired-async.el
index 485786c..5428206 100644
--- a/dired-async.el
+++ b/dired-async.el
@@ -362,6 +362,39 @@ ESC or `q' to not overwrite any of the remaining files,
(ad-deactivate 'dired-create-files)
(ad-deactivate 'wdired-do-renames))))
+(defmacro dired-async--with-async-create-files (&rest body)
+ "Evaluate BODY with ‘dired-create-files’ set to ‘dired-async-create-files’."
+ (declare (indent 0))
+ `(cl-letf (((symbol-function 'dired-create-files)
#'dired-async-create-files))
+ ,@body))
+
+;;;###autoload
+(defun dired-async-do-copy (&optional arg)
+ "Run ‘dired-do-copy’ asynchronously."
+ (interactive "P")
+ (dired-async--with-async-create-files
+ (dired-do-copy arg)))
+
+;;;###autoload
+(defun dired-async-do-symlink (&optional arg)
+ "Run ‘dired-do-symlink’ asynchronously."
+ (interactive "P")
+ (dired-async--with-async-create-files
+ (dired-do-symlink arg)))
+
+;;;###autoload
+(defun dired-async-do-hardlink (&optional arg)
+ "Run ‘dired-do-hardlink’ asynchronously."
+ (interactive "P")
+ (dired-async--with-async-create-files
+ (dired-do-hardlink arg)))
+
+;;;###autoload
+(defun dired-async-do-rename (&optional arg)
+ "Run ‘dired-do-rename’ asynchronously."
+ (interactive "P")
+ (dired-async--with-async-create-files
+ (dired-do-rename arg)))
(provide 'dired-async)
- [elpa] externals/async e5f8a7f 56/60: Merge branch 'master' of github.com:jwiegley/emacs-async, (continued)
- [elpa] externals/async e5f8a7f 56/60: Merge branch 'master' of github.com:jwiegley/emacs-async, Stefan Monnier, 2019/10/08
- [elpa] externals/async e22e612 11/60: Fix and clarify async-ready, async-get and async-wait (#71)., Stefan Monnier, 2019/10/08
- [elpa] externals/async d395e92 25/60: Use only -q flag when needed, Stefan Monnier, 2019/10/08
- [elpa] externals/async 09a177c 21/60: Update README., Stefan Monnier, 2019/10/08
- [elpa] externals/async 953a614 26/60: Add mode line lighter for dired-async-mode, Stefan Monnier, 2019/10/08
- [elpa] externals/async 868d927 33/60: Add .gitignore, Stefan Monnier, 2019/10/08
- [elpa] externals/async 7fa23eb 44/60: Update dired-buffers when operation ends (#99), Stefan Monnier, 2019/10/08
- [elpa] externals/async efe6bda 45/60: Check if dired buffer is alive before reverting (#99), Stefan Monnier, 2019/10/08
- [elpa] externals/async c9bd058 48/60: DRY in async-inject-variables, Stefan Monnier, 2019/10/08
- [elpa] externals/async 5863eef 28/60: Copy the autoload file when installing, Stefan Monnier, 2019/10/08
- [elpa] externals/async dea9627 31/60: Merge pull request #87 from darkfeline/async,
Stefan Monnier <=
- [elpa] externals/async 8bb64e3 41/60: Require cl-lib., Stefan Monnier, 2019/10/08
- [elpa] externals/async 7279cc6 38/60: Remove autoload file as well when uninstalling, Stefan Monnier, 2019/10/08
- [elpa] externals/async afe10c4 30/60: Add one-shot dired-async commands, Stefan Monnier, 2019/10/08
- [elpa] externals/async 4d3b737 52/60: Fix error from reverting to nonexistent directories, Stefan Monnier, 2019/10/08
- [elpa] externals/async 04e1a2c 43/60: Add async-byte-compile-file, Stefan Monnier, 2019/10/08
- [elpa] externals/async 66e6856 34/60: Merge pull request #92 from arichiardi/add-gitignore, Stefan Monnier, 2019/10/08
- [elpa] externals/async bd68cc1 58/60: Handle dotted lists as well, Stefan Monnier, 2019/10/08