[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: locate-dominating-file calls `stat' too eagerly
From: |
Stefan Monnier |
Subject: |
Re: locate-dominating-file calls `stat' too eagerly |
Date: |
Tue, 30 Sep 2008 10:02:41 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) |
>> >> > (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?
I have the vague feeling that it was reported to the list, indeed.
But I wouldn't spend too much time on it,
Stefan
- 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, 2008/09/30
- Re: locate-dominating-file calls `stat' too eagerly,
Stefan Monnier <=
- 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