unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#44645: dired-do-rename: check before asking doomed command
@ 2020-11-14 20:17 積丹尼 Dan Jacobson
  2020-11-16 23:00 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 2+ messages in thread
From: 積丹尼 Dan Jacobson @ 2020-11-14 20:17 UTC (permalink / raw)
  To: 44645

Create a directory, then move it to /tmp.
Then do that all a second time.

R runs the command dired-do-rename.
It should do some check before asking about command doomed to fail:

Overwrite ‘/tmp/google-chrome-unstable’? [Type yn!q or C-h] y
Move: ‘/home/jidanni/.config/google-chrome-unstable’ to ‘/tmp/google-chrome-unstable’ failed:
(file-already-exists File exists /tmp/google-chrome-unstable)

Also that last line,
(file-already-exists File exists /tmp/google-chrome-unstable)
 ^^^^         ^^^^^^ ^^^^ ^^^^^^
seems to repeat itself. (Looks bad.)
(Also aren't these directories, not just files?)

OK, trying again with the shell
$ mv -i .config/google-chrome-unstable/ /tmp/
mv: overwrite '/tmp/google-chrome-unstable'? y
mv: inter-device move failed: '.config/google-chrome-unstable/' to
'/tmp/google-chrome-unstable'; unable to remove target: Directory not empty

OK, I guess checking too much ahead every time isn't worth the overhead.
If so, close this bug.

emacs-version "27.1"





^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#44645: dired-do-rename: check before asking doomed command
  2020-11-14 20:17 bug#44645: dired-do-rename: check before asking doomed command 積丹尼 Dan Jacobson
@ 2020-11-16 23:00 ` Lars Ingebrigtsen
  0 siblings, 0 replies; 2+ messages in thread
From: Lars Ingebrigtsen @ 2020-11-16 23:00 UTC (permalink / raw)
  To: 積丹尼 Dan Jacobson; +Cc: 44645

積丹尼 Dan Jacobson <jidanni@jidanni.org> writes:

> OK, I guess checking too much ahead every time isn't worth the overhead.
> If so, close this bug.

And there may be more than one file/directory in the move, and some may
fail and some may not, so I think the checking is in the correct place,
and I'm closing this bug report.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-11-16 23:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-14 20:17 bug#44645: dired-do-rename: check before asking doomed command 積丹尼 Dan Jacobson
2020-11-16 23:00 ` Lars Ingebrigtsen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).