emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] emacs-26 e6e41da: Reflect changes in copy-file and rename-


From: Eli Zaretskii
Subject: [Emacs-diffs] emacs-26 e6e41da: Reflect changes in copy-file and rename-file in doc strings
Date: Fri, 24 Nov 2017 03:50:32 -0500 (EST)

branch: emacs-26
commit e6e41dac879d2e9b63c2a5dd700a9d88d8065e4d
Author: Eli Zaretskii <address@hidden>
Commit: Eli Zaretskii <address@hidden>

    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)
---
 src/fileio.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/fileio.c b/src/fileio.c
index 18bbffb..9742cf1 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -1828,6 +1828,9 @@ DEFUN ("copy-file", Fcopy_file, Scopy_file, 2, 6,
 If NEWNAME is a directory name, copy FILE to a like-named file under
 NEWNAME.
 
+For NEWNAME to be recognized as a directory name, it should name a
+directory and end in a slash.
+
 This function always sets the file modes of the output file to match
 the input file.
 
@@ -2253,6 +2256,9 @@ If file has names other than FILE, it continues to have 
those names.
 If NEWNAME is a directory name, rename FILE to a like-named file under
 NEWNAME.
 
+For NEWNAME to be recognized as a directory name, it should name a
+directory and end in a slash.
+
 Signal a `file-already-exists' error if a file NEWNAME already exists
 unless optional third argument OK-IF-ALREADY-EXISTS is non-nil.
 An integer third arg means request confirmation if NEWNAME already exists.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]