Mercurial > emacs
changeset 52003:0509fad02151
(Truenames): Add LIMIT arg to file-chase-links.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Tue, 22 Jul 2003 15:25:53 +0000 |
parents | 26d4153f70a1 |
children | 34d5a525041e |
files | lispref/files.texi |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/lispref/files.texi Tue Jul 22 15:25:22 2003 +0000 +++ b/lispref/files.texi Tue Jul 22 15:25:53 2003 +0000 @@ -948,10 +948,12 @@ @var{filename}. The argument must be an absolute file name. @end defun -@defun file-chase-links filename +@defun file-chase-links filename &optional limit This function follows symbolic links, starting with @var{filename}, until it finds a file name which is not the name of a symbolic link. -Then it returns that file name. +Then it returns that file name. If you specify a number for +@var{limit}, then after chasing through that many links, the function +just returns what it as even if that is still a symbolic link. @end defun To illustrate the difference between @code{file-chase-links} and