aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii2010-12-12 22:37:54 +0200
committerEli Zaretskii2010-12-12 22:37:54 +0200
commit15579471891efd210b5d9edd29c1374cba98f648 (patch)
tree257e35357cc629e051aee04bf8c1219590b3b207 /src
parent4bb49a92aa12b7c607cc648b7598fde22216f06e (diff)
downloademacs-15579471891efd210b5d9edd29c1374cba98f648.tar.gz
emacs-15579471891efd210b5d9edd29c1374cba98f648.zip
Document that expand-file-name collapses multiple slashes. (Bug#7617)
fileio.c (Fexpand_file_name): Doc fix.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog4
-rw-r--r--src/fileio.c5
2 files changed, 8 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 249e77d3aa3..97401ffe40a 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,7 @@
12010-12-12 Eli Zaretskii <eliz@gnu.org>
2
3 * fileio.c (Fexpand_file_name): Doc fix. (Bug#7617)
4
12010-12-11 Eli Zaretskii <eliz@gnu.org> 52010-12-11 Eli Zaretskii <eliz@gnu.org>
2 6
3 * w32fns.c (Fx_show_tip): Call try_window with last argument 7 * w32fns.c (Fx_show_tip): Call try_window with last argument
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
832so are file name components followed by `..', along with the `..' itself; 832so are file name components followed by `..', along with the `..' itself;
833note that these simplifications are done without checking the resulting 833note that these simplifications are done without checking the resulting
834file names in the file system. 834file names in the file system.
835Multiple consecutive slashes are collapsed into a single slash,
836except at the beginning of the file name when they are significant (e.g.,
837UNC file names on MS-Windows.)
835An initial `~/' expands to your home directory. 838An initial `~/' expands to your home directory.
836An initial `~USER/' expands to USER's home directory. 839An initial `~USER/' expands to USER's home directory.
837See also the function `substitute-in-file-name'. 840See also the function `substitute-in-file-name'.
@@ -839,7 +842,7 @@ See also the function `substitute-in-file-name'.
839For technical reasons, this function can return correct but 842For technical reasons, this function can return correct but
840non-intuitive results for the root directory; for instance, 843non-intuitive results for the root directory; for instance,
841\(expand-file-name ".." "/") returns "/..". For this reason, use 844\(expand-file-name ".." "/") returns "/..". For this reason, use
842(directory-file-name (file-name-directory dirname)) to traverse a 845\(directory-file-name (file-name-directory dirname)) to traverse a
843filesystem tree, not (expand-file-name ".." dirname). */) 846filesystem tree, not (expand-file-name ".." dirname). */)
844 (name, default_directory) 847 (name, default_directory)
845 Lisp_Object name, default_directory; 848 Lisp_Object name, default_directory;