Mercurial > emacs
changeset 53780:6c059bf40adc
(Fcopy_file): If NEWNAME is a directory, expand the
basename of FILE relative to it, not FILE itself.
author | Eli Zaretskii <eliz@is.elta.co.il> |
---|---|
date | Mon, 02 Feb 2004 20:51:18 +0000 |
parents | 5b728a418323 |
children | 52abcf84b0dc |
files | src/fileio.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/fileio.c Mon Feb 02 15:22:39 2004 +0000 +++ b/src/fileio.c Mon Feb 02 20:51:18 2004 +0000 @@ -2407,7 +2407,7 @@ 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);