Mercurial > emacs
diff src/fileio.c @ 30376:a931186f35fa
(syms_of_coding): Doc fix for inhibit-iso-escape-detection.
author | Eli Zaretskii <eliz@gnu.org> |
---|---|
date | Sat, 22 Jul 2000 10:17:50 +0000 |
parents | ffa0e91cd494 |
children | 2bf69b38f4d3 |
line wrap: on
line diff
--- a/src/fileio.c Sat Jul 22 10:12:00 2000 +0000 +++ b/src/fileio.c Sat Jul 22 10:17:50 2000 +0000 @@ -2546,6 +2546,12 @@ encoded_file = ENCODE_FILE (file); encoded_newname = ENCODE_FILE (newname); +#ifdef DOS_NT + /* If the file names are identical but for the case, don't ask for + confirmation: they simply want to change the letter-case of the + file name. */ + if (NILP (Fstring_equal (Fdowncase (file), Fdowncase (newname)))) +#endif if (NILP (ok_if_already_exists) || INTEGERP (ok_if_already_exists)) barf_or_query_if_file_exists (encoded_newname, "rename to it",