diff options
| author | Stefan Monnier | 2010-12-13 10:27:36 -0500 |
|---|---|---|
| committer | Stefan Monnier | 2010-12-13 10:27:36 -0500 |
| commit | f49d1f52b2e368ef67dcfececd426de958548f4e (patch) | |
| tree | ce24ced92f2acc976daf4b69e3634c8bd600e44e /src/fileio.c | |
| parent | 07176b2a9e63a0d3933b167f987475d8a18da5cc (diff) | |
| parent | 11aad4e9f9f54ce8e9ecc66347e512b20a3cdf39 (diff) | |
| download | emacs-f49d1f52b2e368ef67dcfececd426de958548f4e.tar.gz emacs-f49d1f52b2e368ef67dcfececd426de958548f4e.zip | |
Merge from emacs-23
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 886e5ebc411..c2b93a6bd8b 100644 --- a/src/fileio.c +++ b/src/fileio.c | |||
| @@ -786,6 +786,9 @@ File name components that are `.' are removed, and | |||
| 786 | so are file name components followed by `..', along with the `..' itself; | 786 | so are file name components followed by `..', along with the `..' itself; |
| 787 | note that these simplifications are done without checking the resulting | 787 | note that these simplifications are done without checking the resulting |
| 788 | file names in the file system. | 788 | file names in the file system. |
| 789 | Multiple consecutive slashes are collapsed into a single slash, | ||
| 790 | except at the beginning of the file name when they are significant (e.g., | ||
| 791 | UNC file names on MS-Windows.) | ||
| 789 | An initial `~/' expands to your home directory. | 792 | An initial `~/' expands to your home directory. |
| 790 | An initial `~USER/' expands to USER's home directory. | 793 | An initial `~USER/' expands to USER's home directory. |
| 791 | See also the function `substitute-in-file-name'. | 794 | See also the function `substitute-in-file-name'. |
| @@ -793,7 +796,7 @@ See also the function `substitute-in-file-name'. | |||
| 793 | For technical reasons, this function can return correct but | 796 | For technical reasons, this function can return correct but |
| 794 | non-intuitive results for the root directory; for instance, | 797 | non-intuitive results for the root directory; for instance, |
| 795 | \(expand-file-name ".." "/") returns "/..". For this reason, use | 798 | \(expand-file-name ".." "/") returns "/..". For this reason, use |
| 796 | (directory-file-name (file-name-directory dirname)) to traverse a | 799 | \(directory-file-name (file-name-directory dirname)) to traverse a |
| 797 | filesystem tree, not (expand-file-name ".." dirname). */) | 800 | filesystem tree, not (expand-file-name ".." dirname). */) |
| 798 | (Lisp_Object name, Lisp_Object default_directory) | 801 | (Lisp_Object name, Lisp_Object default_directory) |
| 799 | { | 802 | { |