From: kai.grossjohann@gmx.net (Kai Großjohann)
Subject: Re: Recent change to file-chase-links has a bug
Date: Wed, 09 Apr 2003 15:49:40 +0200 [thread overview]
Message-ID: <84wui393wr.fsf@lucy.is.informatik.uni-duisburg.de> (raw)
In-Reply-To: 200304090710.QAA15874@etlken.m17n.org
Kenichi Handa <handa@m17n.org> writes:
> Now the code is as below:
>
> (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)
> (max (max limit 100)))
Wild guess: Richard meant (or limit 100) instead of (max limit 100).
> (while (and (or (null limit) (< count limit))
> (setq tem (file-symlink-p newname)))
> (save-match-data
> (if (= count max)
> (error "Apparent cycle of symbolic links for %s" filename))
--
A preposition is not a good thing to end a sentence with.
next prev parent reply other threads:[~2003-04-09 13:49 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-04-09 7:10 Recent change to file-chase-links has a bug Kenichi Handa
2003-04-09 13:49 ` Kai Großjohann [this message]
2003-04-09 21:26 ` Kevin Rodgers
2003-04-10 6:22 ` Richard Stallman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=84wui393wr.fsf@lucy.is.informatik.uni-duisburg.de \
--to=kai.grossjohann@gmx.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).