diff options
author | Eli Zaretskii <eliz@gnu.org> | 2010-12-12 22:37:54 +0200 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2010-12-12 22:37:54 +0200 |
commit | 15579471891efd210b5d9edd29c1374cba98f648 (patch) | |
tree | 257e35357cc629e051aee04bf8c1219590b3b207 /src/fileio.c | |
parent | 4bb49a92aa12b7c607cc648b7598fde22216f06e (diff) | |
download | emacs-15579471891efd210b5d9edd29c1374cba98f648.tar.gz emacs-15579471891efd210b5d9edd29c1374cba98f648.tar.bz2 emacs-15579471891efd210b5d9edd29c1374cba98f648.zip |
Document that expand-file-name collapses multiple slashes. (Bug#7617)
fileio.c (Fexpand_file_name): Doc fix.
Diffstat (limited to 'src/fileio.c')
-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 440a726b26b..e330f724142 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -832,6 +832,9 @@ File name components that are `.' are removed, and so are file name components followed by `..', along with the `..' itself; note that these simplifications are done without checking the resulting file names in the file system. +Multiple consecutive slashes are collapsed into a single slash, +except at the beginning of the file name when they are significant (e.g., +UNC file names on MS-Windows.) An initial `~/' expands to your home directory. An initial `~USER/' expands to USER's home directory. See also the function `substitute-in-file-name'. @@ -839,7 +842,7 @@ See also the function `substitute-in-file-name'. For technical reasons, this function can return correct but non-intuitive results for the root directory; for instance, \(expand-file-name ".." "/") returns "/..". For this reason, use -(directory-file-name (file-name-directory dirname)) to traverse a +\(directory-file-name (file-name-directory dirname)) to traverse a filesystem tree, not (expand-file-name ".." dirname). */) (name, default_directory) Lisp_Object name, default_directory; |