mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-26 07:11:34 -08:00
(Fcopy_file): If NEWNAME is a directory, expand the
basename of FILE relative to it, not FILE itself.
This commit is contained in:
parent
82eb0daee6
commit
dcdbbb5dc5
2 changed files with 6 additions and 1 deletions
|
|
@ -1,3 +1,8 @@
|
|||
2004-02-02 Eli Zaretskii <eliz@elta.co.il>
|
||||
|
||||
* fileio.c (Fcopy_file): If NEWNAME is a directory, expand the
|
||||
basename of FILE relative to it, not FILE itself.
|
||||
|
||||
2004-02-02 Kenichi Handa <handa@m17n.org>
|
||||
|
||||
* coding.c (coding_restore_composition): Check invalid
|
||||
|
|
|
|||
|
|
@ -2407,7 +2407,7 @@ Also set the file modes of the target file to match the source file. */)
|
|||
CHECK_STRING (newname);
|
||||
|
||||
if (!NILP (Ffile_directory_p (newname)))
|
||||
newname = Fexpand_file_name (file, newname);
|
||||
newname = Fexpand_file_name (Ffile_name_nondirectory (file), newname);
|
||||
else
|
||||
newname = Fexpand_file_name (newname, Qnil);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue