[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
file-chase-links doesn't respect limit can be nil
From: |
Christoph Conrad |
Subject: |
file-chase-links doesn't respect limit can be nil |
Date: |
Wed, 09 Apr 2003 10:09:48 +0200 |
In GNU Emacs 21.3.50.20 (i686-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
of 2003-04-09 on linux
configured using `configure '--with-x''
see part with ";;" below. if limit is nil max would raise an error.
(defun file-chase-links (filename &optional limit)
"Chase links in FILENAME until a name that is not a link.
Unlike `file-truename', this does not check whether a parent
directory name is a symbolic link.
If the optional argument LIMIT is a number,
it means chase no more than that many links and then stop."
(let (tem (newname filename)
(count 0)
;; -cc- and added
(max (and limit (max limit 100))))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- file-chase-links doesn't respect limit can be nil,
Christoph Conrad <=