* files.el (file-relative-name): Doc fix.
authorLars Ingebrigtsen <larsi@gnus.org>
Sat, 8 Feb 2014 04:53:52 +0000 (20:53 -0800)
committerLars Ingebrigtsen <larsi@gnus.org>
Sat, 8 Feb 2014 04:53:52 +0000 (20:53 -0800)
Fixes: debbugs:15159

lisp/ChangeLog
lisp/files.el

index 9f8ff6a..3b7ae9c 100644 (file)
@@ -1,5 +1,7 @@
 2014-02-08  Lars Ingebrigtsen  <larsi@gnus.org>
 
+       * files.el (file-relative-name): Doc fix (bug#15159).
+
        * fringe.el (fringe-styles): Doc fix (bug#15239).
 
        * isearch.el (isearch-filter-predicate): Documentation typo fix
index cb873b4..a8b2a20 100644 (file)
@@ -4469,6 +4469,8 @@ Uses `backup-directory-alist' in the same way as does
   "Convert FILENAME to be relative to DIRECTORY (default: `default-directory').
 This function returns a relative file name which is equivalent to FILENAME
 when used with that default directory as the default.
+If FILENAME is a relative file name, it will be interpreted as existing in
+`default-directory'.
 If FILENAME and DIRECTORY lie on different machines or on different drives
 on a DOS/Windows machine, it returns FILENAME in expanded form."
   (save-match-data