diff options
| author | Roland McGrath | 1993-07-03 06:58:05 +0000 |
|---|---|---|
| committer | Roland McGrath | 1993-07-03 06:58:05 +0000 |
| commit | d093c3ac08ef48f862971dd9b1f35f72c6228976 (patch) | |
| tree | 56d99a4b459e9b1f09fd6f882c564ebd58c04b16 /src | |
| parent | f66ef18523768c55e1c56df1c7456952322b9c30 (diff) | |
| download | emacs-d093c3ac08ef48f862971dd9b1f35f72c6228976.tar.gz emacs-d093c3ac08ef48f862971dd9b1f35f72c6228976.zip | |
(Frename_file): After prompting for ok-if-already-exists, pass only nil or
t to copy-file, never an integer.
Diffstat (limited to 'src')
| -rw-r--r-- | src/fileio.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/fileio.c b/src/fileio.c index 41838f0937e..fe4deb1fd32 100644 --- a/src/fileio.c +++ b/src/fileio.c | |||
| @@ -1767,7 +1767,10 @@ This is what happens in interactive use with M-x.") | |||
| 1767 | { | 1767 | { |
| 1768 | if (errno == EXDEV) | 1768 | if (errno == EXDEV) |
| 1769 | { | 1769 | { |
| 1770 | Fcopy_file (filename, newname, ok_if_already_exists, Qt); | 1770 | Fcopy_file (filename, newname, |
| 1771 | /* We have already prompted if it was an integer, | ||
| 1772 | so don't have copy-file prompt again. */ | ||
| 1773 | NILP (ok_if_already_exists) ? Qnil : Qt, Qt); | ||
| 1771 | Fdelete_file (filename); | 1774 | Fdelete_file (filename); |
| 1772 | } | 1775 | } |
| 1773 | else | 1776 | else |