Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

bug#5487: 23.1.91; rename-file is broken

3 views
Skip to first unread message

Stephen Berman

unread,
Jan 28, 2010, 11:41:01 AM1/28/10
to 54...@debbugs.gnu.org
1. Make a non-directory file "test" in ~.
2. emacs -Q
3. M-x rename-file RET ~/test RET /some-dir-on-a-different-partition
=>error "copy-directory: Opening directory: not a directory, /home/steve/test"

The file "test" remains in ~, and in /some-dir-on-a-different-partition
there is a new empty directory "test".

I strongly suspect this is due to this change (but I haven't had time to
revert it and rebuild Emacs to test my suspicion):

2010-01-27 David De La Harpe Golden <da...@harpegolden.net>

* fileio.c (Frename_file): Call copy-directory and
delete-directory for directories, in order to handle cross-device
renaming (Bug#3353).


In GNU Emacs 23.1.91.3 (i686-pc-linux-gnu, GTK+ Version 2.18.1)
of 2010-01-27 on escher
Windowing system distributor `The X.Org Foundation', version 11.0.10605000
Important settings:
value of $LC_ALL: nil
value of $LC_COLLATE: nil
value of $LC_CTYPE: nil
value of $LC_MESSAGES: nil
value of $LC_MONETARY: nil
value of $LC_NUMERIC: nil
value of $LC_TIME: nil
value of $LANG: en_US.UTF-8
value of $XMODIFIERS: @im=local
locale-coding-system: utf-8-unix
default enable-multibyte-characters: t

Chong Yidong

unread,
Jan 28, 2010, 12:48:26 PM1/28/10
to Stephen Berman, 54...@debbugs.gnu.org
> 1. Make a non-directory file "test" in ~.
> 2. emacs -Q
> 3. M-x rename-file RET ~/test RET /some-dir-on-a-different-partition
> =>error "copy-directory: Opening directory: not a directory, /home/steve/test"

Sorry, there was a bug in the latest change to Frename_file. (I
actually spotted it in the patch, but forgot to fix it before applying
to the repository.) Should be fixed now.


Stephen Berman

unread,
Jan 28, 2010, 4:43:58 PM1/28/10
to Chong Yidong, 54...@debbugs.gnu.org

It is; thanks!

Steve Berman


0 new messages