[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: locate-dominating-file calls `stat' too eagerly
From: |
Eli Zaretskii |
Subject: |
Re: locate-dominating-file calls `stat' too eagerly |
Date: |
Tue, 30 Sep 2008 10:14:32 +0300 |
> From: Stefan Monnier <address@hidden>
> Cc: address@hidden
> Date: Mon, 29 Sep 2008 16:45:22 -0400
>
> >> > (defun locate-dominating-file (file regexp)
> >> > "Look up the directory hierarchy from FILE for a file matching REGEXP."
> >> > ;; If FILE does not exist, find its parent directory that does.
> >> > (or (file-exists-p file)
> >> > (while (and file (not (file-directory-p file)))
> >> > (setq file (file-name-directory (directory-file-name file)))))
> >> In some corner cases, this can infloop.
> > What are those cases? I think we need to describe them in a comment
> > there.
>
> Can't remember, sadly.
Were they reported to one of the mailing lists? Should I search the
archives?
- locate-dominating-file calls `stat' too eagerly, Eli Zaretskii, 2008/09/29
- Re: locate-dominating-file calls `stat' too eagerly, Stefan Monnier, 2008/09/29
- Re: locate-dominating-file calls `stat' too eagerly, Eli Zaretskii, 2008/09/29
- Re: locate-dominating-file calls `stat' too eagerly, Stefan Monnier, 2008/09/29
- Re: locate-dominating-file calls `stat' too eagerly, Eli Zaretskii, 2008/09/29
- Re: locate-dominating-file calls `stat' too eagerly, Stefan Monnier, 2008/09/29
- Re: locate-dominating-file calls `stat' too eagerly,
Eli Zaretskii <=
- Re: locate-dominating-file calls `stat' too eagerly, Stefan Monnier, 2008/09/30
- Re: locate-dominating-file calls `stat' too eagerly, Eli Zaretskii, 2008/09/30
Re: locate-dominating-file calls `stat' too eagerly, Eli Zaretskii, 2008/09/30