[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/async d395e92 25/60: Use only -q flag when needed
From: |
Stefan Monnier |
Subject: |
[elpa] externals/async d395e92 25/60: Use only -q flag when needed |
Date: |
Tue, 8 Oct 2019 10:11:31 -0400 (EDT) |
branch: externals/async
commit d395e92d2a12e8b944ccfcdc1330c8665a3187f5
Author: Thierry Volpiatto <address@hidden>
Commit: Thierry Volpiatto <address@hidden>
Use only -q flag when needed
* dired-async.el (dired-async-create-files): Do it.
---
dired-async.el | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/dired-async.el b/dired-async.el
index 1d6d563..a97a9a3 100644
--- a/dired-async.el
+++ b/dired-async.el
@@ -178,8 +178,7 @@ See `dired-create-files' for the behavior of arguments."
(setq overwrite-query nil)
(let ((total (length fn-list))
failures async-fn-list skipped callback
- ;; Fix tramp issue #80 with emacs-26
- (async-quiet-switch "-q"))
+ async-quiet-switch)
(let (to)
(dolist (from fn-list)
(setq to (funcall name-constructor from))
@@ -234,6 +233,13 @@ ESC or `q' to not overwrite any of the remaining files,
(dired-log "%s `%s' to `%s' failed\n"
operation from to)))
(push (cons from to) async-fn-list)))))
+ ;; Fix tramp issue #80 with emacs-26, use "-q" only when needed.
+ (setq async-quiet-switch
+ (if (and (boundp 'tramp-cache-read-persistent-data)
+ async-fn-list
+ (cl-loop for (from . to) in async-fn-list
+ thereis (file-remote-p to)))
+ "-q" "-Q"))
;; When failures have been printed to dired log add the date at bob.
(when (or failures skipped) (dired-log t))
;; When async-fn-list is empty that's mean only one file
- [elpa] externals/async e5e636c 19/60: Update version number., (continued)
- [elpa] externals/async e5e636c 19/60: Update version number., Stefan Monnier, 2019/10/08
- [elpa] externals/async ea83ef5 23/60: Use emacs -q flag to fix issue #80 with emacs-26, Stefan Monnier, 2019/10/08
- [elpa] externals/async 87853ae 29/60: Allow backing up in same directory, Stefan Monnier, 2019/10/08
- [elpa] externals/async 424ecd8 32/60: Fix compilation warning, Stefan Monnier, 2019/10/08
- [elpa] externals/async 15bcbf6 37/60: Use user-emacs-directory (#95), Stefan Monnier, 2019/10/08
- [elpa] externals/async 0b545da 53/60: Only revert dired buffers if not remote, Stefan Monnier, 2019/10/08
- [elpa] externals/async d0a29f1 46/60: Copy source files when installing, Stefan Monnier, 2019/10/08
- [elpa] externals/async ec374ca 57/60: Use consp instead of listp, Stefan Monnier, 2019/10/08
- [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 <=
- [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, 2019/10/08
- [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