]> git.eshelyaron.com Git - emacs.git/commitdiff
file-truename doc fix for bug#2341.
authorGlenn Morris <rgm@gnu.org>
Thu, 3 Mar 2011 08:10:52 +0000 (00:10 -0800)
committerGlenn Morris <rgm@gnu.org>
Thu, 3 Mar 2011 08:10:52 +0000 (00:10 -0800)
* lisp/files.el (file-truename): Doc fix.

* doc/lispref/files.texi (Truenames): Minor clarification.

doc/lispref/ChangeLog
doc/lispref/files.texi
lisp/ChangeLog
lisp/files.el

index 1a980f14f3d33653143ab38244b38913af7050eb..25f9225944d516735e5923d88c7a905a1b70e6ad 100644 (file)
@@ -1,3 +1,7 @@
+2011-03-03  Glenn Morris  <rgm@gnu.org>
+
+       * files.texi (Truenames): Minor clarification.  (Bug#2341)
+
 2011-03-01  Glenn Morris  <rgm@gnu.org>
 
        * variables.texi (Directory Local Variables):
index 3697f18baddac3959ffbc301c3b33f56b761ee76..e3bdebd28a1cc8097710e80dc24d21b42e563930 100644 (file)
@@ -1041,7 +1041,8 @@ because they eliminate symbolic links as a cause of name variation.
 
 @defun file-truename filename
 The function @code{file-truename} returns the truename of the file
-@var{filename}.  The argument must be an absolute file name.
+@var{filename}.  If the argument is not an absolute file name,
+this function first expands it against @code{default-directory}.
 
 This function does not expand environment variables.  Only
 @code{substitute-in-file-name} does that.  @xref{Definition of
index d933a2ea6969220ffb396f6d366e677b6a4bbbb5..c785a66fc5260dfcd48216e04d7499b48b584201 100644 (file)
@@ -1,3 +1,7 @@
+2011-03-03  Glenn Morris  <rgm@gnu.org>
+
+       * files.el (file-truename): Doc fix.  (Bug#2341)
+
 2011-03-03  Bob Rogers  <rogers-emacs@rgrjr.dyndns.org>
 
        * vc/vc-dir.el (vc-dir-mode-map): Bind vc-dir-find-file to e. (Bug#7349)
index 8849e26415119fd4cc59139604534bf552dc921c..a8f937233de928ccb87d5ae5a21ef706aab21680 100644 (file)
@@ -983,7 +983,8 @@ accessible."
       nil)))
 
 (defun file-truename (filename &optional counter prev-dirs)
-  "Return the truename of FILENAME, which should be absolute.
+  "Return the truename of FILENAME.
+If FILENAME is not absolute, first expands it against `default-directory'.
 The truename of a file name is found by chasing symbolic links
 both at the level of the file and at the level of the directories
 containing it, until no links are left at any level.