]> git.eshelyaron.com Git - emacs.git/commitdiff
(Frename_file): After prompting for ok-if-already-exists, pass only nil or
authorRoland McGrath <roland@gnu.org>
Sat, 3 Jul 1993 06:58:05 +0000 (06:58 +0000)
committerRoland McGrath <roland@gnu.org>
Sat, 3 Jul 1993 06:58:05 +0000 (06:58 +0000)
t to copy-file, never an integer.

src/fileio.c

index 41838f0937ec4077ba41c42affcfac676bf45194..fe4deb1fd32431f9d722b38296f1b54c71adcc88 100644 (file)
@@ -1767,7 +1767,10 @@ This is what happens in interactive use with M-x.")
     {
       if (errno == EXDEV)
        {
-         Fcopy_file (filename, newname, ok_if_already_exists, Qt);
+         Fcopy_file (filename, newname,
+                     /* We have already prompted if it was an integer,
+                        so don't have copy-file prompt again.  */
+                     NILP (ok_if_already_exists) ? Qnil : Qt, Qt);
          Fdelete_file (filename);
        }
       else