aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2017-11-24 10:49:29 +0200
committerEli Zaretskii2017-11-24 10:49:29 +0200
commite6e41dac879d2e9b63c2a5dd700a9d88d8065e4d (patch)
treeddbfc613b5fdd5e345d45a508ef702bb472a111a
parent0ec534070f3fece004a5077eef67d034e629e219 (diff)
downloademacs-e6e41dac879d2e9b63c2a5dd700a9d88d8065e4d.tar.gz
emacs-e6e41dac879d2e9b63c2a5dd700a9d88d8065e4d.zip
Reflect changes in copy-file and rename-file in doc strings
* src/fileio.c (Fcopy_file, Frename_file): Mention in the doc strings that directory names must end in a slash. (Bug#29362)
-rw-r--r--src/fileio.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/fileio.c b/src/fileio.c
index 18bbffb3789..9742cf1a258 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -1828,6 +1828,9 @@ DEFUN ("copy-file", Fcopy_file, Scopy_file, 2, 6,
1828If NEWNAME is a directory name, copy FILE to a like-named file under 1828If NEWNAME is a directory name, copy FILE to a like-named file under
1829NEWNAME. 1829NEWNAME.
1830 1830
1831For NEWNAME to be recognized as a directory name, it should name a
1832directory and end in a slash.
1833
1831This function always sets the file modes of the output file to match 1834This function always sets the file modes of the output file to match
1832the input file. 1835the input file.
1833 1836
@@ -2253,6 +2256,9 @@ If file has names other than FILE, it continues to have those names.
2253If NEWNAME is a directory name, rename FILE to a like-named file under 2256If NEWNAME is a directory name, rename FILE to a like-named file under
2254NEWNAME. 2257NEWNAME.
2255 2258
2259For NEWNAME to be recognized as a directory name, it should name a
2260directory and end in a slash.
2261
2256Signal a `file-already-exists' error if a file NEWNAME already exists 2262Signal a `file-already-exists' error if a file NEWNAME already exists
2257unless optional third argument OK-IF-ALREADY-EXISTS is non-nil. 2263unless optional third argument OK-IF-ALREADY-EXISTS is non-nil.
2258An integer third arg means request confirmation if NEWNAME already exists. 2264An integer third arg means request confirmation if NEWNAME already exists.