emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] Changes to emacs/src/fileio.c,v


From: Chong Yidong
Subject: [Emacs-diffs] Changes to emacs/src/fileio.c,v
Date: Thu, 16 Oct 2008 17:59:35 +0000

CVSROOT:        /sources/emacs
Module name:    emacs
Changes by:     Chong Yidong <cyd>      08/10/16 17:59:35

Index: fileio.c
===================================================================
RCS file: /sources/emacs/emacs/src/fileio.c,v
retrieving revision 1.638
retrieving revision 1.639
diff -u -b -r1.638 -r1.639
--- fileio.c    20 Sep 2008 23:37:08 -0000      1.638
+++ fileio.c    16 Oct 2008 17:59:34 -0000      1.639
@@ -819,7 +819,13 @@
 file names in the file system.
 An initial `~/' expands to your home directory.
 An initial `~USER/' expands to USER's home directory.
-See also the function `substitute-in-file-name'.  */)
+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
+filesystem tree, not (expand-file-name ".."  dirname).  */)
      (name, default_directory)
      Lisp_Object name, default_directory;
 {




reply via email to

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