[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/async 87853ae 29/60: Allow backing up in same directory
From: |
Stefan Monnier |
Subject: |
[elpa] externals/async 87853ae 29/60: Allow backing up in same directory |
Date: |
Tue, 8 Oct 2019 10:11:31 -0400 (EDT) |
branch: externals/async
commit 87853ae35f19646f83f653b798e9f6d646de7113
Author: Thierry Volpiatto <address@hidden>
Commit: Thierry Volpiatto <address@hidden>
Allow backing up in same directory
like "cp -f --backup=numbered foo bar".
* dired-async.el (dired-async-create-files): Do it.
---
dired-async.el | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/dired-async.el b/dired-async.el
index b592cac..485786c 100644
--- a/dired-async.el
+++ b/dired-async.el
@@ -190,7 +190,8 @@ See `dired-create-files' for the behavior of arguments."
(let (to)
(dolist (from fn-list)
(setq to (funcall name-constructor from))
- (if (equal to from)
+ (if (and (equal to from)
+ (null (eq file-creator 'backup-file)))
(progn
(setq to nil)
(dired-log "Cannot %s to same file: %s\n"
@@ -291,7 +292,7 @@ ESC or `q' to not overwrite any of the remaining files,
;; Inline `backup-file' as long as it is not
;; available in emacs.
(defalias 'backup-file
- ;; Same feature as "cp --backup=numbered from
to"
+ ;; Same feature as "cp -f --backup=numbered
from to"
;; Symlinks are copied as file from source
unlike
;; `dired-copy-file' which is same as cp -d.
;; Directories are omitted.
- [elpa] externals/async 373b32a 55/60: Remove props recursively when injecting vars with NOPROPS, (continued)
- [elpa] externals/async 373b32a 55/60: Remove props recursively when injecting vars with NOPROPS, Stefan Monnier, 2019/10/08
- [elpa] externals/async 81dc034 54/60: Merge pull request #107 from CeleritasCelery/master, Stefan Monnier, 2019/10/08
- [elpa] externals/async f61f1db 60/60: Merge pull request #113 from jwiegley/smonnier_patch, Stefan Monnier, 2019/10/08
- [elpa] externals/async 5e353eb 59/60: Change deps management in async-bytecomp.el, Stefan Monnier, 2019/10/08
- [elpa] externals/async 29e6144 07/60: Allow non list bindings in async-let., Stefan Monnier, 2019/10/08
- [elpa] externals/async d17c11e 51/60: Add more info about emacs bug when using async, Stefan Monnier, 2019/10/08
- [elpa] externals/async 7df4b68 40/60: Merge branch 'master' of github.com:jwiegley/emacs-async, Stefan Monnier, 2019/10/08
- [elpa] externals/async 6c9c3a2 17/60: Update README.md, Stefan Monnier, 2019/10/08
- [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 <=
- [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, 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